From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11371 invoked by alias); 11 Jun 2008 03:04:01 -0000 Received: (qmail 11361 invoked by uid 22791); 11 Jun 2008 03:04:01 -0000 X-Spam-Status: No, hits=-2.5 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from inergen.sybase.com (HELO inergen.sybase.com) (192.138.151.43) by sourceware.org (qpsmtpd/0.31) with ESMTP; Wed, 11 Jun 2008 03:03:37 +0000 Received: from smtp2.sybase.com (sybgate2 [10.22.97.85]) by inergen.sybase.com with ESMTP id m5B33JE19501; Tue, 10 Jun 2008 20:03:19 -0700 (PDT) Received: from gwwest.sybase.com (localhost [127.0.0.1]) by smtp2.sybase.com with ESMTP id m5B33Je17212; Tue, 10 Jun 2008 20:03:19 -0700 (PDT) Received: from [192.168.1.100] ([10.22.242.134]) by waterloomail1.sybase.com (Lotus Domino Release 6.5.4) with ESMTP id 2008061023031534-3313 ; Tue, 10 Jun 2008 23:03:15 -0400 Cc: Phil Muldoon , frysk@sourceware.org Message-Id: From: Ray Ruvinskiy To: Tom Tromey In-Reply-To: Mime-Version: 1.0 (Apple Message framework v919.2) Subject: Re: Debugging a NullPointerException in fstack Date: Wed, 11 Jun 2008 04:10:00 -0000 References: <484E2B37.3010309@redhat.com> X-Mailer: Apple Mail (2.919.2) X-MIMETrack: Itemize by SMTP Server on WaterlooMail1/SYBASE(Release 6.5.4|March 27, 2005) at 06/10/2008 11:03:15 PM, Serialize by Router on gwwest/SYBASE(Release 6.5.5|November 30, 2005) at 06/10/2008 08:03:19 PM, Serialize complete at 06/10/2008 08:03:19 PM Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes X-IsSubscribed: yes Mailing-List: contact frysk-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: frysk-owner@sourceware.org X-SW-Source: 2008-q2/txt/msg00096.txt.bz2 Interesting. I was able to successfully step through the code in gdb but not to print out object contents. I saw things like the following: (gdb) p pid $12 = Expected a negative vbase offset (old compiler?) Also, gdb displayed many warnings along the following lines: warning: Missing the separate debug info file: /usr/lib/debug/.build- id/fa/841219472d35412ad631ad0f0fabb78e5c1957.debug warning: Missing the separate debug info file: /usr/lib/debug/.build- id/64/ce37a1b7ee7ce1c23dcfe9344cbb361c321b8f.debug warning: Missing the separate debug info file: /usr/lib/debug/.build- id/aa/af5e0dff4a6114026fc027a15c895e93e11733.debug warning: Missing the separate debug info file: /usr/lib/debug/.build- id/91/f8d452c6cc80573296b2bbb28a1dd076b0507f.debug Ray On 10-Jun-08, at 10:17 PM, Tom Tromey wrote: >>>>>> "Ray" == Ray Ruvinskiy writes: > > Ray> Is it possible to make it so that when a program compiled with > Ray> gcj throws an exception, the stack trace is displayed, like it > Ray> would be if a jar file is run with Sun's jre? > > This should work in general. I think in some places frysk swallows > exceptions or does not print traces. > > Ray> Is there any hope in getting gdb to meaningfully debug > Ray> gcj-compiled binaries? > > This should pretty much work. > > Tom >