From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23186 invoked by alias); 9 Sep 2008 21:31:11 -0000 Received: (qmail 23178 invoked by uid 22791); 9 Sep 2008 21:31:11 -0000 X-Spam-Check-By: sourceware.org Received: from NaN.false.org (HELO nan.false.org) (208.75.86.248) by sourceware.org (qpsmtpd/0.31) with ESMTP; Tue, 09 Sep 2008 21:30:32 +0000 Received: from nan.false.org (localhost [127.0.0.1]) by nan.false.org (Postfix) with ESMTP id 090901018F; Tue, 9 Sep 2008 21:30:30 +0000 (GMT) Received: from caradoc.them.org (22.svnf5.xdsl.nauticom.net [209.195.183.55]) by nan.false.org (Postfix) with ESMTP id E7A4F10140; Tue, 9 Sep 2008 21:30:29 +0000 (GMT) Received: from drow by caradoc.them.org with local (Exim 4.69) (envelope-from ) id 1KdAn6-0004Ow-Fp; Tue, 09 Sep 2008 17:30:28 -0400 Date: Tue, 09 Sep 2008 21:31:00 -0000 From: Daniel Jacobowitz To: Keith Seitz , Tom Tromey Cc: gdb@sourceware.org Subject: Re: Some java questions Message-ID: <20080909213028.GA16584@caradoc.them.org> Mail-Followup-To: Keith Seitz , Tom Tromey , gdb@sourceware.org References: <48C6D1DF.3060705@redhat.com> <48C6D1DF.3060705@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <48C6D1DF.3060705@redhat.com> User-Agent: Mutt/1.5.17 (2008-05-11) X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2008-09/txt/msg00057.txt.bz2 On Tue, Sep 09, 2008 at 12:43:27PM -0700, Keith Seitz wrote: > In the case of jmisc,exp, the test suite attempts to set breakpoints on > "'jmisc.main(java.lang.String[])'" and > "'jmisc.main(java.lang.String[])void'", working around the gcc bug > (similar in jprint.exp). IMO, this is a very dangerous precedent. Bugs in > the toolchain should not be worked around like this. They should be > xfailed or (in this case), breaks at the correct "jmisc.main" should have > been left in as well. See jmain.exp, which is specifically for this issue. > At long last, my question is: Is gdb supposed to be able to do something > with "jmisc.main(java.lang.String[])void", i.e. is it considered valid > "input" to break, print, and other commands? As long as it appears in the mangling - and gcj is going to continue emitting DW_AT_MIPS_linkage_name, which I expect it will - I think it ought to work. Particularly with single quotes around it, as jmisc.exp uses. On Tue, Sep 09, 2008 at 03:17:52PM -0600, Tom Tromey wrote: > FYI -- nobody really maintains the gcj support in gdb. This is sad, but very much true. -- Daniel Jacobowitz CodeSourcery