From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30084 invoked by alias); 6 Dec 2005 22:56:15 -0000 Received: (qmail 30077 invoked by uid 22791); 6 Dec 2005 22:56:14 -0000 X-Spam-Check-By: sourceware.org Received: from sibelius.xs4all.nl (HELO sibelius.xs4all.nl) (82.92.89.47) by sourceware.org (qpsmtpd/0.31) with ESMTP; Tue, 06 Dec 2005 22:56:13 +0000 Received: from elgar.sibelius.xs4all.nl (root@elgar.sibelius.xs4all.nl [192.168.0.2]) by sibelius.xs4all.nl (8.13.4/8.13.4) with ESMTP id jB6Mt5Qn024351; Tue, 6 Dec 2005 23:55:05 +0100 (CET) Received: from elgar.sibelius.xs4all.nl (kettenis@localhost.sibelius.xs4all.nl [127.0.0.1]) by elgar.sibelius.xs4all.nl (8.13.4/8.13.3) with ESMTP id jB6Mt5jd002086; Tue, 6 Dec 2005 23:55:05 +0100 (CET) Received: (from kettenis@localhost) by elgar.sibelius.xs4all.nl (8.13.4/8.13.4/Submit) id jB6Mt2IL001600; Tue, 6 Dec 2005 23:55:02 +0100 (CET) Date: Wed, 07 Dec 2005 16:19:00 -0000 Message-Id: <200512062255.jB6Mt2IL001600@elgar.sibelius.xs4all.nl> From: Mark Kettenis To: drow@false.org CC: jimb@red-bean.com, gdb-patches@sourceware.org In-reply-to: <20051204230646.GA26122@nevyn.them.org> (message from Daniel Jacobowitz on Sun, 4 Dec 2005 18:06:46 -0500) Subject: Re: [RFC/RFA] Deal with -g1 generated DWARF2 debug info References: <200512041859.jB4IxrVO001319@elgar.sibelius.xs4all.nl> <8f2776cb0512041316w14c80cfdka34f84fcbd3c6cdb@mail.gmail.com> <20051204212244.GA24021@nevyn.them.org> <8f2776cb0512041400x257a1889u8fb53eb23e62ce49@mail.gmail.com> <20051204221547.GA25034@nevyn.them.org> <200512042239.jB4Mdc8k021405@elgar.sibelius.xs4all.nl> <20051204230646.GA26122@nevyn.them.org> Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2005-12/txt/msg00125.txt.bz2 > Date: Sun, 4 Dec 2005 18:06:46 -0500 > From: Daniel Jacobowitz > > > > 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. Bleah, turns out we were using ld -x on the object files before building them into a library. Of course this made local symbols disappear from .symtab. Anyway, it seems that my fellow OpenBSD developers are happy with compiling all system libraries with -g, which of course is much better ;-). I'll send a message to the GCC mailing list about -g1 & DWARF2. Mark