From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jim Blandy To: Daniel Berlin Cc: Michael Snyder , Daniel Jacobowitz , Subject: Re: RFA: GCC stabs don't contain prototype info Date: Tue, 27 Nov 2001 20:49:00 -0000 Message-id: References: X-SW-Source: 2001-11/msg00527.html Daniel Berlin writes: > > FYI, it is not only stabs that fails this test. I've got a recent > > elf/dwarf target that also fails it. > > Err, it shouldn't. > Unless you really mean dwarf and not dwarf2. > GCC adds DW_AT_prototyped to prototyped functions. > And gdb consumes it. With Dwarf 2, GDB always has enough information to do the right thing, but it doesn't use it. At the moment, a function type can have its TYPE_FLAG_PROTOTYPED flag set or clear. Stabs doesn't set it reliably; Dwarf 2 does. But the code which checks this flag doesn't know where its setting came from, so it doesn't know whether it should trust it or not. There's an arch-specific macro which says whether it should. *gag* From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12707 invoked by alias); 28 Nov 2001 04:49:15 -0000 Mailing-List: contact gdb-patches-help@sourceware.cygnus.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 12685 invoked from network); 28 Nov 2001 04:49:12 -0000 Received: from unknown (HELO zwingli.cygnus.com) (208.245.165.35) by hostedprojects.ges.redhat.com with SMTP; 28 Nov 2001 04:49:12 -0000 Received: by zwingli.cygnus.com (Postfix, from userid 442) id 1FDB55E9D8; Tue, 27 Nov 2001 23:50:28 -0500 (EST) To: Daniel Berlin Cc: Michael Snyder , Daniel Jacobowitz , Subject: Re: RFA: GCC stabs don't contain prototype info References: From: Jim Blandy Date: Fri, 16 Nov 2001 10:45:00 -0000 In-Reply-To: Daniel Berlin's message of Tue, 27 Nov 2001 17:27:17 -0500 (EST) Message-ID: X-Mailer: Gnus v5.3/Emacs 19.34 X-SW-Source: 2001-11/txt/msg00312.txt.bz2 Message-ID: <20011116104500.K4uHQvdqEGovnp8jV2o5cogP32_9w0OwCBs9t_WDQvs@z> Daniel Berlin writes: > > FYI, it is not only stabs that fails this test. I've got a recent > > elf/dwarf target that also fails it. > > Err, it shouldn't. > Unless you really mean dwarf and not dwarf2. > GCC adds DW_AT_prototyped to prototyped functions. > And gdb consumes it. With Dwarf 2, GDB always has enough information to do the right thing, but it doesn't use it. At the moment, a function type can have its TYPE_FLAG_PROTOTYPED flag set or clear. Stabs doesn't set it reliably; Dwarf 2 does. But the code which checks this flag doesn't know where its setting came from, so it doesn't know whether it should trust it or not. There's an arch-specific macro which says whether it should. *gag*