Re: Querying macro values while debugging

"jacob navia" <>
23 Oct 2001 20:21:13 -0400

          From comp.compilers

Related articles
Querying macro values while debugging (srikanth) (2001-10-20)
Re: Querying macro values while debugging (jacob navia) (2001-10-23)
| List of all articles for this month |

From: "jacob navia" <>
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.

"srikanth" <> 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.

Post a followup to this message

Return to the comp.compilers page.
Search the comp.compilers archives again.