Getsym - HP 68000 Series User Manual

Debugger/simulator
Table of Contents

Advertisement

Chapter 11: Predefined Macros

getsym

getsym
Function
Return the symbol associated with an address, if any exists
Synopsis
char *getsym (addr)
void *addr;
Description
The getsym macro returns, as a character string, the symbol associated with the
address argument. The address argument must coincide with the symbol
address for the macro to return the symbol name; the macro will not return a
symbol name if the symbol storage space starts elsewhere but spans the
argument address.
Diagnostics
Returns the symbol name associated with the address, if one exists; otherwise,
it returns a null string.
Example
Symbol Add foo <tab> Address 0x1000
Expression Printf "%s", getsym (0x1000)
456
foo

Advertisement

Table of Contents
loading

This manual is also suitable for:

B1466

Table of Contents