From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21991 invoked by alias); 30 Jul 2003 01:05:25 -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 21984 invoked from network); 30 Jul 2003 01:05:24 -0000 Received: from unknown (HELO mail-out1.apple.com) (17.254.0.52) by sources.redhat.com with SMTP; 30 Jul 2003 01:05:24 -0000 Received: from mailgate2.apple.com (A17-129-100-225.apple.com [17.129.100.225]) by mail-out1.apple.com (8.12.9/8.12.9) with ESMTP id h6U15AiB016931 for ; Tue, 29 Jul 2003 18:05:11 -0700 (PDT) Received: from scv2.apple.com (scv2.apple.com) by mailgate2.apple.com (Content Technologies SMTPRS 4.2.1) with ESMTP id ; Tue, 29 Jul 2003 18:05:23 -0700 Received: from apple.com (keatge.apple.com [17.201.20.159]) by scv2.apple.com (8.12.9/8.12.9) with ESMTP id h6U15IQZ027515; Tue, 29 Jul 2003 18:05:18 -0700 (PDT) Date: Wed, 30 Jul 2003 01:05:00 -0000 Mime-Version: 1.0 (Apple Message framework v552) Content-Type: text/plain; charset=US-ASCII; format=flowed Subject: Two possible function stabs patches From: Geoffrey Keating To: Michael Elizabeth Chastain , gcc-patches@gcc.gnu.org, gdb@sources.redhat.com, # Daniel Jacobowitz Content-Transfer-Encoding: 7bit Message-Id: X-SW-Source: 2003-07/txt/msg00332.txt.bz2 OK, so I have not one, but two patches! 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. -- Geoff Keating