30.01.2013 Views

TotalView Users Guide - CI Wiki

TotalView Users Guide - CI Wiki

TotalView Users Guide - CI Wiki

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Loading Programs<br />

Figure 58: Open a<br />

Core File<br />

� Select the File > New Program command from the Root Window and<br />

then select Open a core file from the list on the left side of the window.<br />

You will now need to type the program and core file’s name (See<br />

Figure 58.) .<br />

CLI: dattach –c corefile –e executable<br />

If the program and corefile reside on another system, you will, of course,<br />

need to name that system in the host area.<br />

If your operating system can create multi-threaded core files (and most<br />

can), <strong>TotalView</strong> can examine the thread in which the problem occurred. It<br />

can also show you information about other threads in your program.<br />

The Process Window displays the core file, with the Stack Trace, Stack<br />

Frame, and Source Panes showing the state of the process when it dumped<br />

core. The title bar of the Process Window names the signal that caused the<br />

core dump. The right arrow in the line number area of the Source Pane indicates<br />

the value of the program counter (PC) when the process encountered<br />

the error.<br />

You can examine the state of all variables at the time the error occurred.<br />

Chapter 14, “Examining and Changing Data,” on page 279 contains more<br />

information.<br />

If you start a process while you’re examining a core file, <strong>TotalView</strong> stops<br />

using the core file and switches to this new process.<br />

64 Chapter 4: Setting Up a Debugging Session

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!