|Looking for a good compiler/debugger combination firstname.lastname@example.org (1995-12-09)|
|Re: Looking for a good compiler/debugger combination email@example.com (1995-12-17)|
|From:||firstname.lastname@example.org (Seth M. LaForge)|
|Date:||17 Dec 1995 00:30:35 -0500|
|Organization:||California Institute of Technology|
On 9 Dec 1995 19:50:30 -0500, Thomas Campbell <email@example.com> wrote:
>I need a debugger that will debug macros.
The approach I've always taken is to first run my source through the C
pre-processor, then strip the result of "#line" directives, and
compile and debug the result. This produces rather unreadable code,
especially since standard library macros are expanded, but it's better
The process looks something like:
cc -E source.c | grep -v '^#line' > source.cpp.c
xdb a.out # Your favorite debugger here.
Return to the
Search the comp.compilers archives again.