System Debug Reference Manual (32650-90888)

384 Chapter10
System Debug Standard Functions
func cmseg
%cmdebug > wl cmstart(ob')
PROG %0.0
%cmdebug > wl cmstart(two)
PROG %0.71
%cmdebug > wl cmstart(one)
PROG %0.142
%cmdebug > wl cmproclen(ob')
%71
%cmdebug > wl cmstart(two) - cmstart(ob')
%71
%cmdebug > wl cmproclen(two)
%51
%cmdebug > wl cmstart(one)-cmstart(two)
%51
%cmdebug > wl cmproclen(one)
%30
Limitations, Restrictions
The names and addresses of nested CM procedures, such as procedure three, are not
available within the CM FPMAP records. Addresses that fall within nested procedures
(three) are returned as offsets relative to the parent procedure (two).
func cmseg
Returns the CM segment name for the specified CM logical code address.
Syntax
cmseg (
cmlogaddr
)
Formal Declaration
cmseg:str (
cmlogaddr
:lcptr)
Parameters
cmlogaddr
The CM logical code address for which the segment name is desired.
Cmlogaddr
must be a full CM logical code address (LCPTR). For example:
CMPC Current CM program counter
CMPW+4 Top of CM program window + 4
PROG(2.102) Program file logical seg 2 offset 102