Re: Looking for a good compiler/debugger combination

sethml@envy.ugcs.caltech.edu (Seth M. LaForge)
17 Dec 1995 00:30:35 -0500

          From comp.compilers

Related articles
Looking for a good compiler/debugger combination thoma57@ibm.net (1995-12-09)
Re: Looking for a good compiler/debugger combination sethml@envy.ugcs.caltech.edu (1995-12-17)
| List of all articles for this month |
From: sethml@envy.ugcs.caltech.edu (Seth M. LaForge)
Newsgroups: comp.compilers,comp.lang.c,comp.unix.programmer
Date: 17 Dec 1995 00:30:35 -0500
Organization: California Institute of Technology
References: 95-12-061
Keywords: C, debug

On 9 Dec 1995 19:50:30 -0500, Thomas Campbell <thoma57@ibm.net> 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
than nothing.


The process looks something like:


cc -E source.c | grep -v '^#line' > source.cpp.c
cc source.cpp.c
xdb a.out # Your favorite debugger here.


Seth


--


Post a followup to this message

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