From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16323 invoked by alias); 6 May 2002 22:53:57 -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 16316 invoked from network); 6 May 2002 22:53:56 -0000 Received: from unknown (HELO gash2.peakpeak.com) (207.174.178.17) by sources.redhat.com with SMTP; 6 May 2002 22:53:56 -0000 Received: from creche.cygnus.com (ta0201.peakpeak.com [204.144.244.201]) by gash2.peakpeak.com (8.9.3/8.9.3) with ESMTP id QAA16847; Mon, 6 May 2002 16:53:52 -0600 Received: (from tromey@localhost) by creche.cygnus.com (8.9.3/8.9.3) id RAA22921; Mon, 6 May 2002 17:03:19 -0600 To: Daniel Jacobowitz Cc: Gdb List Subject: Re: question about method naming References: <87u1pl6u33.fsf@creche.redhat.com> <20020506193356.GA25574@nevyn.them.org> From: Tom Tromey Reply-To: tromey@redhat.com X-Attribution: Tom X-Zippy: NOW, I'm taking the NEXT FLIGHT to ACAPULCO so I can write POEMS about BROKEN GUITAR STRINGS and sensuous PRE-TEENS!! Date: Mon, 06 May 2002 15:53:00 -0000 In-Reply-To: Daniel Jacobowitz's message of "Mon, 6 May 2002 15:33:56 -0400" Message-ID: <87adrc6frc.fsf@creche.redhat.com> X-SW-Source: 2002-05/txt/msg00046.txt.bz2 >>>>> "Daniel" == Daniel Jacobowitz writes: Tom> If I type: Tom> b x.main Tom> gdb tells me that there is no such method. Daniel> Are you working on a very current gcj? I.E. one that defaults Daniel> to DWARF-2 output? I observe the same thing in 3.0.4 with Daniel> -gdwarf-2, but not with -gstabs+. Yes. I'm using the trunk cvs gcj. Daniel> In this version, the stabs debug info claims that 'class x' Daniel> has a member function 'main'. In DWARF-2 it claims that Daniel> 'class x' has a member function 'x.main(java.lang.String[])'. Daniel> If this is still the case in your compiler (check readelf -w Daniel> output, search for a DW_TAG_subprogram whose name contains Daniel> main) then I believe it is a gcj bug. Ok. What is the correct output? `main(java.lang.String[])'? I wonder if this was done because of the lack of namespace support in gdb? In this case that would be strange (`x' is a class, not a namespace). This is something I'll note in the bug report. Daniel> Also amusing: Daniel> <2><1c4>: Abbrev Number: 6 (DW_TAG_subprogram) Daniel> DW_AT_external : 1 Daniel> DW_AT_name : () Daniel> DW_AT_MIPS_linkage_name: _ZN1xC1Ev Daniel> DW_AT_artificial : 1 Daniel> DW_AT_declaration : 1 Daniel> The constructor's name is obviously wrong... I saw this too. Thanks for your insight, Tom