'Trace 32 command to read the Breakpoint source file

Is there a command in Trace 32 to read the field marked in this screenshot enter image description here



Solution 1:[1]

To get symbolic which equals to an arbitrary address (or precedes the address in case there is no symbol exactly for the address), use the PRACTICE function sYmbol.NAME().

To get the address to where the program counter is pointing to, use the PRACTICE function PP().

Putting both together you get an expression which prints the symbol related to the program counter:

ECHO sYmbol.NAME(PP())

To get a symbol representation which matches exactly the location of the program counter (in case there is no symbol exactly matching the location of the program counter) you can use the following:

PRIVATE &sym &offset
&sym=sYmbol.NAME(PP())
&offset=PP()-&sym
IF &offset!=0
    &sym="&sym+&offset"
ECHO "&sym"

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Holger