|Querying macro values while debugging firstname.lastname@example.org (srikanth) (2001-10-20)|
|Re: Querying macro values while debugging email@example.com (jacob navia) (2001-10-23)|
|From:||"jacob navia" <firstname.lastname@example.org>|
|Date:||23 Oct 2001 20:21:13 -0400|
|Organization:||Wanadoo, l'internet avec France Telecom|
|Posted-Date:||23 Oct 2001 20:21:13 EDT|
The lcc-win32 debugger stores all the macro valmues as character string
constants and displays them.
To make this possible, the preprocessor was modified, to be ablme to furnish
the value of the macros to the compiler when emitting the debug information.
Then, the linker was modified to put all similar strings in a single record.
Then the debugger was modified to read those constant strings.
It is a very valuable add-on, and as far as I know, lcc-win32 is the only
compiler to do this.
"srikanth" <email@example.com> wrote in message
> Are there debuggers out there that would allow a user to query the value
> of a #defined constant ? I am aware that HP compilers support an option
> in which macro values are preserved in a special table in the objects
> files. This could then be used to answer queries.
> How about other debuggers ? If they do support this, it would be
> interesting to know what techniques are used for this purpose. Also I am
> interested in hearing how valuable folks think this capability is.
Return to the
Search the comp.compilers archives again.