HP 3000 Manuals

func cmnode [ System Debug Reference Manual ] MPE/iX 5.0 Documentation


System Debug Reference Manual

func cmnode 

Returns the address of the closest CM node point corresponding to the
specified CM logical code address.

Syntax 

      cmnode (cmlogaddr [node])

Refer to appendix C for a discussion of CM Object Code Translation (OCT),
node points, and breakpoints in translated CM code.

Formal Declaration 

      cmnode:lcptr (cmlogaddr:lcptr [node:str="PREV"])

Parameters 

 cmlogaddr       The CM logical code address within a translated code
                 segment for which the closest CM node point 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
                 fopen+102             CM procedure fopen + %102 (assumes
                                       CM mode)
                 cmaddr('fopen')+%102  CM procedure fopen + %102 (NM or
                                       CM mode)

 node            The desired node point, either PREV (closest previous
                 node) or NEXT (closest next node).  If unspecified, then
                 PREV is assumed.

Examples 

     %cmdebug > wl cmnode(sys(2.226)) 
     SYS %2.224

Print the CM address of the closest CM previous (by default) node point.

     %cnmdebug > wl cmnode(sys(2.226), "next") 
     SYS %2.232

Print the CM address of the closest CM next node point.

Limitations, Restrictions 

none



MPE/iX 5.0 Documentation