3.2.10. getsym

Returns a debugger symbol at a specified address.

Syntax


char *getsym (addr)
void *addr;

where:

addr

The address for which the associated symbol is to be returned.

Description

This macro returns a debugger symbol from a specified address. If no symbol exists at the address, a null string is returned

Return value

char *

A debugger symbol.

Rules

None

Example

This example shows how to use getsym on the command line:


add char x[20]
strcpy(x,getsym(@pc))
pr x
"__main"

strcpy(x,getsym(0x8010))
pr x
""

Copyright © 2002-2006 ARM Limited. All rights reserved.ARM DUI 0175H
Non-Confidential