30.01.2013 Views

TotalView Users Guide - CI Wiki

TotalView Users Guide - CI Wiki

TotalView Users Guide - CI Wiki

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Setting the Program Counter<br />

Figure 161: Load All Symbols<br />

in Stack Context menu<br />

library’s symbols, it cannot honor a request to not load in symbols, so it<br />

ignores a request to not read them.<br />

CLI: dset TV::dll_read_all_symbols<br />

dset TV::dll_read_loader_symbols_only<br />

dset TV::dll_read_no_symbols<br />

See the online Help for additional information.<br />

If your program stops in a library that has not already had its symbols read,<br />

<strong>TotalView</strong> reads the library’s symbols. For example, if your program SEGVs<br />

in a library, <strong>TotalView</strong> reads the symbols from that library before it reports<br />

the error. In all cases, however, <strong>TotalView</strong> always reads the loader symbols<br />

for shared system libraries.<br />

Reading Excluded Information<br />

While you are debugging your program, you might find that you do need<br />

the symbol information that you told <strong>TotalView</strong> that it shouldn’t read. Tell<br />

<strong>TotalView</strong> to read them by right-clicking your mouse in the Stack Trace<br />

Pane and then selecting the Load All Symbols in Stack command from the<br />

context menu. (See Figure 161.)<br />

After selecting this command, <strong>TotalView</strong> examines all active stack frames<br />

and, if it finds unread libraries in any frame, <strong>TotalView</strong> reads them.<br />

CLI: TV::read_symbols<br />

This CLI command also gives you finer control over how <strong>TotalView</strong><br />

reads in library information.<br />

Setting the Program Counter<br />

<strong>TotalView</strong> lets you resume execution at a different statement than the one<br />

at which it stopped execution by resetting the value of the program<br />

counter (PC). For example, you might want to skip over some code, execute<br />

248 Chapter 12: Debugging Programs

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

Saved successfully!

Ooh no, something went wrong!