System Debug Reference Manual (32650-90888)
Chapter 10 373
System Debug Standard Functions
func cmbpindex
Examples
%cmdebug > bl
CM [1] PROG % 2.3401 TEST'SCREEN+%26
CM [2] PROG % 0.347 TEST'FILES+%0
CM @[1] SYS % 161.5274 FOPEN+%0
First, list the existing breakpoints.
%cmdebug > wl cmbpaddr(1)
PROG %2.3401
%cmdebug > wl cmbpaddr(1, -1)
SYS %161.5274
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 cmbpindex
Returns the CM breakpoint index associated with the indicated CM code address.
Syntax
cmbpindex (
cmaddr
[
pin
])
This function accepts the address (either logical or absolute) of an existing CM 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 utilizing the optional
pin
parameter.
Formal Declaration
cmbpindex:u16 (
cmaddr
:cptr [
pin
:s16=0])
Parameters
cmaddr
Look for this address in the CM breakpoint table. Both logical and
absolute code addresses are supported.
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.