Related articles |
---|
Querying macro values while debugging srikanth@cup.hp.com (srikanth) (2001-10-20) |
Re: Querying macro values while debugging jacob@jacob.remcomp.fr (jacob navia) (2001-10-23) |
From: | "jacob navia" <jacob@jacob.remcomp.fr> |
Newsgroups: | comp.compilers |
Date: | 23 Oct 2001 20:21:13 -0400 |
Organization: | Wanadoo, l'internet avec France Telecom |
References: | 01-10-093 |
Keywords: | debug |
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.
http://www.cs.virginia.edu/~lcc-win32
"srikanth" <srikanth@cup.hp.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
comp.compilers page.
Search the
comp.compilers archives again.