From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13113 invoked by alias); 18 Jul 2006 16:07:05 -0000 Received: (qmail 13001 invoked by uid 22791); 18 Jul 2006 16:07:04 -0000 X-Spam-Check-By: sourceware.org Received: from aph.demon.co.uk (HELO zebedee.littlepinkcloud.COM) (80.177.99.144) by sourceware.org (qpsmtpd/0.31) with ESMTP; Tue, 18 Jul 2006 16:07:02 +0000 Received: from zebedee.littlepinkcloud.COM (localhost.localdomain [127.0.0.1]) by zebedee.littlepinkcloud.COM (8.13.6/8.13.5) with ESMTP id k6IG6pvL003707; Tue, 18 Jul 2006 17:06:51 +0100 Received: (from aph@localhost) by zebedee.littlepinkcloud.COM (8.13.6/8.13.5/Submit) id k6IG6omO003704; Tue, 18 Jul 2006 17:06:50 +0100 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <17597.1818.845170.65128@zebedee.pink> Date: Tue, 18 Jul 2006 17:09:00 -0000 From: Andrew Haley To: gdb@sourceware.org, java@gcc.gnu.org Subject: Re: Weird gdb problem In-Reply-To: <17596.64787.198441.885314@zebedee.pink> References: <17596.64787.198441.885314@zebedee.pink> X-Mailer: VM 7.19 under Emacs 21.4.1 Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2006-07/txt/msg00128.txt.bz2 Andrew Haley writes: > I seem to have broken the debuginfo from gcj. > > When I step into a Java method I don't get info about args passed to > methods. But this is only for debuginfo compiled into libgcj -- when > I compile a test case myself I get correct args displayed. As in this > one, where I step into p.p(), the argument "this" is displayed: > > > (gdb) s > p.p() (this=@2aaaad588e30) at Hello.java:7 > (gdb) > 0x00002aaaac057820 in java.lang.Object.Object() () > at /mnt/zebedee/aph/gcc/gcj-eclipse/libjava/java/lang/Object.java:360 > > > Note that the first step gave the value of the "this" argument, and > the second one (in libgcj) didn't. Continuing: > > > (gdb) > java.io.PrintStream.println(java.lang.String)void () > at /mnt/zebedee/aph/gcc/gcj-eclipse/libjava/java/io/PrintStream.java:482 > (gdb) info args > No arguments. > > > So, to recap: I get values of args to methods displayed in gdb, but > only when I compile test cases. When stepping into libgcj itself, the > values of args aren't displayed. > > So ... might anyone in gdb land like to guess how this might have broken? We might have found the bug. Sorry for the noise... Andrew.