HPlogo System Debug Reference Manual: HP 3000 MPE/iX Computer Systems > Chapter 8 System Debug Standard Functions

func cmbpaddr

» 

Technical documentation

Complete book in PDF
» Feedback

 » Table of Contents

 » Index

Returns the address corresponding to the indicated CM breakpoint index.

Syntax

   cmbpaddr (bpindex [pin])

This function accepts an index for an existing CM 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 utilizing the optional pin parameter.

Formal Declaration

   cmbpaddr:lcptr (bpindex:u16 [pin:s16=0])

Parameters

bpindex

The breakpoint index to look for.

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.

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

Feedback to webmaster