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

Mark Kettenis
2005-12-04T22:40:47Z

> 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?

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

Mark