From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22921 invoked by alias); 30 Jul 2003 14:18:01 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 22886 invoked from network); 30 Jul 2003 14:18:00 -0000 Received: from unknown (HELO localhost.redhat.com) (207.219.125.131) by sources.redhat.com with SMTP; 30 Jul 2003 14:18:00 -0000 Received: from redhat.com (localhost [127.0.0.1]) by localhost.redhat.com (Postfix) with ESMTP id 007462B7F; Wed, 30 Jul 2003 10:17:59 -0400 (EDT) Message-ID: <3F27D397.5000104@redhat.com> Date: Wed, 30 Jul 2003 14:18:00 -0000 From: Andrew Cagney User-Agent: Mozilla/5.0 (X11; U; NetBSD macppc; en-US; rv:1.0.2) Gecko/20030223 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Geoffrey Keating Cc: Michael Elizabeth Chastain , gcc-patches@gcc.gnu.org, gdb@sources.redhat.com, Daniel Jacobowitz Subject: Re: Fwd: Two possible function stabs patches References: <288F3C82-C22A-11D7-B17B-0030657EA24A@apple.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2003-07/txt/msg00341.txt.bz2 > Oops! Forgot to attach the actual patches. Fixed below. > > > OK, so I have not one, but two patches! Um, these appear to come with a little history (Solaris perhaphs?). Can you provide a bit of a background? You'll likely also want to add something to the GNU stabs document found in the GDB distro. > The first one is less interesting. It uses the language's name for the function, unless it's a C++ function, in which case it uses the (mangled) assembler name. It'll give a stab like > > .stabs "__ZN3bar3fooEv:F(0,1)",36,0,2,__ZN3bar3fooEv > or > .stabs "foo:F(0,1)",36,0,2,foo.11 > > The second one uses the 'printable name' for the function. That is, for C it's just the name, and for C++ it's the demangled version of its name. I am not at all sure it'll work, because it gives stabs like: > > .stabs "int bar::foo():F(0,1)",36,0,2,__ZN3bar3fooEv > > which I suspect can't be parsed. > > Could someone help me test these? It needs a machine that can use stabs and on which the GDB testsuite doesn't give too many false positives. I'd strongly encourage you to install GNU/Linux and *BSD on a couple local old/slow Mac boxes. It will make testing a lot easier. enjoy, Andrew