🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.bug
Article #864

Re: Debugging on the GCC and G++ compilers

#864
From: gnu
Date: Tue, 12 Dec 1989 09:25
18 lines
1270 bytes
  * The reason you can't execute expressions containing macros in the
debugger is because the debugger doesn't understand macros.  I would
rather we fixed that than re-engineered the compiler.  The schism
between cpp and so-called "source level" debuggers bites me all over
the place (from "stdout" on up).

  *  Turning all those macros into inline functions just leaves you up
the creek for postmortem debugging anyway -- you can't call a function
in a core file!

...Though the debugger could get around that too, 'simulating life
after death', if we worked at it.  File I/O would be hosed, but you
could fork a process, exec the original program, when it stops in
ptrace, clobber it with some code to brk space, copy in the data
and stack segments, then treat it like a process being debugged.

	John
Technical Details
Message-ID: <8912120925.AA07060@hop.toad.com>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!usc!zaphod.mps.ohio-state.edu!tut.cis.ohio-state.edu!toad.com!gnu
References: <8912111917.aa14371@ICS.UCI.EDU>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!usc!zaphod.mps.ohio-state.edu!tut.cis.ohio-state.edu!toad.com!gnu
From: gnu@toad.com
Newsgroups: gnu.gcc.bug
Subject: Re: Debugging on the GCC and G++ compilers
Message-ID: <8912120925.AA07060@hop.toad.com>
Date: 12 Dec 89 09:25:38 GMT
References: <8912111917.aa14371@ICS.UCI.EDU>
Sender: daemon@tut.cis.ohio-state.edu
Distribution: gnu
Organization: GNUs Not Usenet
Lines: 18