From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21616 invoked by alias); 13 Mar 2003 22:59:34 -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 21432 invoked from network); 13 Mar 2003 22:59:33 -0000 Received: from unknown (HELO gash2.peakpeak.com) (207.174.178.17) by sources.redhat.com with SMTP; 13 Mar 2003 22:59:33 -0000 Received: from fleche.redhat.com (tf0021.peakpeak.com [204.144.239.21]) by gash2.peakpeak.com (8.9.3/8.9.3) with ESMTP id PAA00860; Thu, 13 Mar 2003 15:59:25 -0700 Received: by fleche.redhat.com (Postfix, from userid 1000) id 48BDD4F863F; Thu, 13 Mar 2003 15:53:26 -0700 (MST) To: David Carlton Cc: gdb , Michael Elizabeth Chastain Subject: Re: break jmisc.main References: From: Tom Tromey Reply-To: tromey@redhat.com X-Attribution: Tom X-Zippy: Yes, Private DOBERMAN!! Date: Thu, 13 Mar 2003 22:59:00 -0000 In-Reply-To: Message-ID: <87smtqswt5.fsf@fleche.redhat.com> User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-SW-Source: 2003-03/txt/msg00219.txt.bz2 >>>>> "David" == David Carlton writes: David> Here's the scoop with the FAILs on "break jmisc.main" and "break David> jmisc.main(java.lang.String[]))". Thanks a lot for looking at this. David> .long .LC2 # DW_AT_name: "jmisc.main(java.lang.String[])" David> Sigh. GCJ should get fixed. I really don't know anything about debug info. How should this read? In the above `jmisc' is just a class. However, `java.lang' is a namespace. In the past at least there wasn't namespace support in gdb...? David> Unfortunately, it doesn't find one: the symbol that it David> finds is called something strange like David> "jmisc::main(Jaray*)". (I'm pretty sure David> that's right, though I'd have to check this at home to be sure; David> that's what c++filt demangles the name to.) Should be `JArray', but other than that it looks ok. gcj uses the same mangling as C++. That is an important part of the whole "CNI" approach to writing native methods -- you can just write them in C++ with basically zero overhead. I don't think there is any way to tell a Java symbol from a C++ symbol. Which one you want to use depends more on context -- if I'm debugging the Java code, I like to see the Java symbols. If I'm debugging the C++ code, it is probably more convenient to see the C++ form. Likewise for entering breakpoints and the like. David> (And a third thing: convince somebody who knows more about GCJ David> to become GDB's Java maintainer.) I would love for anybody to become an active gdb/java maintainer. The only inducement I have is the future possibility of a cool gcj t-shirt (assuming I ever print more). That plus gratitude. Tom