From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16608 invoked by alias); 4 Dec 2005 22:40:47 -0000 Received: (qmail 16601 invoked by uid 22791); 4 Dec 2005 22:40:47 -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; Sun, 04 Dec 2005 22:40:46 +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 jB4Mdc1R025143; Sun, 4 Dec 2005 23:39:39 +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 jB4MdcjN003191; Sun, 4 Dec 2005 23:39:38 +0100 (CET) Received: (from kettenis@localhost) by elgar.sibelius.xs4all.nl (8.13.4/8.13.4/Submit) id jB4Mdc8k021405; Sun, 4 Dec 2005 23:39:38 +0100 (CET) Date: Mon, 05 Dec 2005 18:29:00 -0000 Message-Id: <200512042239.jB4Mdc8k021405@elgar.sibelius.xs4all.nl> From: Mark Kettenis To: drow@false.org CC: jimb@red-bean.com, gdb-patches@sourceware.org In-reply-to: <20051204221547.GA25034@nevyn.them.org> (message from Daniel Jacobowitz on Sun, 4 Dec 2005 17:15:47 -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> 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/msg00097.txt.bz2 > Date: Sun, 4 Dec 2005 17:15:47 -0500 > From: Daniel Jacobowitz > > 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