System Debug Reference Manual (32650-90888)
Chapter 10 413
System Debug Standard Functions
func nmbpaddr
USER $10d.12f3dc
The above example prints out the address of one of the Pascal library routines. Notice the
module qualifier.
$nmdebug > wl FOPEN
SYS $a.3f8140
$nmdebug > wl nmaddr("FOPEN")
SYS $a.3f8140
$nmdebug > wl nmaddr("nl.pub.sys/FOPEN")
SYS $a.3f8140
$nmdebug > wl nmaddr("FOPEN" "LST")
SYS $a.3f8140
$nmdebug > wl ?FOPEN
SYS $a.3f80e4
$nmdebug > wl nmaddr("FOPEN" "EXPORTSTUB")
SYS $a.3f80e4
The last set of examples show various methods of locating the entry point and export stub
for the FOPEN intrinsic. Notice that the question mark is not used in the NMADDR function
when referring to stubs.
Limitations, Restrictions
Only addresses corresponding to the process's loaded file set (program file and libraries)
succeed.
System Debug displays stubs by preceding the symbol name with a question mark. For
example, the export stub for FOPEN would appear as ?FOPEN. This form is not honored by
this function (see the last example above).
The addresses for data symbols are not relocated.
func nmbpaddr
Returns the address corresponding to the indicated NM breakpoint index.
Syntax
%nmbpaddr (
bpindex
[
pin
])
This function accepts an index for an existing NM breakpoint and returns the address
where the breakpoint is located. The default action is to look for breakpoints set by the
current PIN. Breakpoint addresses for other PINs (including the global PIN) may be
retrieved by using the optional
pin
parameter.