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 Breakpoints and Barriers<br />

Figure 226: Pending<br />

Breakpoints<br />

When you’re done, <strong>TotalView</strong> sets a breakpoint at the location. If you enter a<br />

function name, <strong>TotalView</strong> sets the breakpoint at the function’s first executable<br />

line. In either case, if a breakpoint already exists at a location, <strong>TotalView</strong><br />

deletes it.<br />

CLI: dbreak sets a breakpoint<br />

ddelete deletes a breakpoint<br />

For detailed information about the kinds of information you can enter in<br />

this dialog box, see dbreak in the <strong>TotalView</strong> Reference <strong>Guide</strong>.<br />

Ambiguous Functions and Pending Breakpoints<br />

If you type a function name that <strong>TotalView</strong> has no information about into<br />

the Action Point > At Location dialog box, it assumes that you have either<br />

mistyped the function name or that the library containing the function has<br />

not yet been loaded into memory.<br />

If <strong>TotalView</strong> cannot find a location to set a breakpoint (or a barrier point),<br />

you can tell it to set it anyway because it could exist in a shared library or it<br />

could be loaded later. These kind of breakpoints are called pending breakpoints.<br />

When libraries are loaded, <strong>TotalView</strong> checks for the function’s name.<br />

If the name is found, it sets the breakpoint. If it isn’t in a newly library,<br />

<strong>TotalView</strong> just keeps on waiting for it to be loaded. You’ll see information in<br />

the Action Points tab that tells you that the breakpoint is pending.<br />

If the name you type is similar to the name of an existing function,<br />

<strong>TotalView</strong> displays its Ambiguous Function dialog box that lets you select<br />

which of these existing functions it should set a breakpoint on. If, however,<br />

the function will be loaded into memory later, you can set a pending breakpoint<br />

(See Figure 227 on page 355.).<br />

If the name you entered was not ambiguous, <strong>TotalView</strong> just asks if it should<br />

set a pending breakpoint. This question box is also shown in Figure 227 on<br />

page 355.<br />

<strong>TotalView</strong> can only place one action point on an address. Because the breakpoints you<br />

specify are actually expressions, the locations to which these expressions evaluate can<br />

overlap or even be the same. Sometimes, and this most often occurs with pending breakpoints<br />

in dynamically loaded libraries, <strong>TotalView</strong> cannot tell when action points over-<br />

354 Chapter 16: Setting Action Points

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

Saved successfully!

Ooh no, something went wrong!