HP 3000 Manuals

LOC [ HP Transact Reference Manual ] MPE/iX 5.0 Documentation


HP Transact Reference Manual

LOC 

Indicates the p-code offset, segment, and system of the Transact/iX
statement that executes next.

Syntax 

LOC

Parameters 

None.

Discussion 

This command allows you to determine your location in a program when
control returns to TRANDEBUG. This command could be used if breakpoints
were set in NMDEBUG.

For example, you could set a breakpoint at a call to a TurboIMAGE
intrinsic, such as DBGET. By returning to TRANDEBUG and issuing the LOC
command, you can determine which Transact/iX statement follows the one
that called the DBGET intrinsic.  Because the TRANDEBUG and NMDEBUG
command sets are two disjointed sets of commands, when the EXIT command
is issued from NMDEBUG execution continues until the next Transact/iX
statement.  At this point, TRANDEBUG regains control and issues a prompt.
For this reason, the LOC command can be used only to determine the
location of the Transact/iX statement after the NMDEBUG breakpoint.

Example 

The following example uses the LOC command.

     TRANDEBUG> NMDEBUG 
     nmdebug> b dbget 
     added: NM     [1] USER ac.001c81b0 dbget
     nmdebug> c 
     Break at: NM  [1] USER ac.001c81b0 dbget
     nmdebug> exit 
     TRANDEBUG> LOC 

                   CURRENT LOCATION:

                   SYSTEM          SEGMENT       OFFSET
                   ------------------------------------
                   PARENT                0           10



MPE/iX 5.0 Documentation