This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [RFC/RFA] Deal with -g1 generated DWARF2 debug info


On Sun, Dec 04, 2005 at 11:39:38PM +0100, Mark Kettenis wrote:
> > Date: Sun, 4 Dec 2005 17:15:47 -0500
> > From: Daniel Jacobowitz <drow@false.org>
> >
> > The compiler is buggy, but I object to any classification of this as a
> > BSD-specific change; it's GCC that's buggy and Debian used -g1 too for
> > a while.  It ICEs on some targets, and does this sort of thing.
> > 
> > Mark, FYI, we ended up removing all dwarf sections other than
> > .debug_frame.  This plus .symtab are enough to make backtraces useful;
> > it works quite well and avoids the undertested -g1.
> 
> Hmm, perhaps we're just lucky, but it seems that all supported OpenBSD
> platforms have no problem with -g1.  I'll keep your idea in mind as
> plan B.  Doesn't it result in gdb printing the wrong function names
> for static function names in backtraces?

No.  It gets those from .symtab; that's why we left it in.

> Meanwhile, I still think that find_function_in_inferior() should be
> fixed to deal with -g1.

I'm uncertain.  What GCC is producing is definitely wrong.

-- 
Daniel Jacobowitz
CodeSourcery, LLC


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]