|Looking for a good compiler/debugger combination email@example.com (1995-12-09)|
|Re: Looking for a good compiler/debugger combination firstname.lastname@example.org (1995-12-17)|
|From:||email@example.com (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 <firstname.lastname@example.org> 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.