System Debug Reference Manual (32650-90888)

414 Chapter10
System Debug Standard Functions
func nmbpindex
Formal Declaration
nmbpaddr:lptr (
bpindex
:u32 [
pin
:s16=0])
Parameters
bpindex
The index of the breakpoint whose address is to be returned.
pin
Look for breakpoints set by this PIN. Default is the caller's PIN (a
pin
of 0
implies this). To specify system (global) breakpoints, use a -1 (or 32762) as
the PIN.
Examples
$nmdebug > bl
NM [1] PROG $ c3.56d80 test_screen+$ab3
NM [2] PROG $ c3.4cf18 test_file^
NM @[1] SYS $ a.004b9130 FOPEN
First, list the existing breakpoints.
$nmdebug > wl nmbpaddr(1)
PROG $c3.56d80
$nmdebug > l nmbpaddr(1, -1)
SYS $a.4b9130
Now use the function to return the address associated with process local breakpoint
number one and then with system breakpoint number one.
Limitations, Restrictions
none
func nmbpindex
Returns the NM breakpoint index for the NM breakpoint that has been set at the specified
NM code address.
Syntax
nmbpindex (
virtaddr
[
pin
])
This function accepts the address of an existing NM breakpoint and returns the logical
index number associated with that breakpoint. The default action is to look for
breakpoints set by the current PIN. Breakpoint indices for other PINs (including the global
PIN) may be retrieved by using the optional
pin
parameter.