From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24534 invoked by alias); 11 Jun 2008 04:10:05 -0000 Received: (qmail 24520 invoked by uid 22791); 11 Jun 2008 04:10:04 -0000 X-Spam-Status: No, hits=-2.3 required=5.0 tests=AWL,BAYES_00,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (66.187.233.31) by sourceware.org (qpsmtpd/0.31) with ESMTP; Wed, 11 Jun 2008 04:09:47 +0000 Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id m5B49j6N027998 for ; Wed, 11 Jun 2008 00:09:45 -0400 Received: from pobox-2.corp.redhat.com (pobox-2.corp.redhat.com [10.11.255.15]) by int-mx1.corp.redhat.com (8.13.1/8.13.1) with ESMTP id m5B49iPQ020248 for ; Wed, 11 Jun 2008 00:09:44 -0400 Received: from localhost.localdomain (vpn-14-46.rdu.redhat.com [10.11.14.46]) by pobox-2.corp.redhat.com (8.13.1/8.13.1) with ESMTP id m5B49iAp029480 for ; Wed, 11 Jun 2008 00:09:44 -0400 Message-ID: <484F5007.4020408@redhat.com> Date: Wed, 11 Jun 2008 07:20:00 -0000 From: Rick Moseley User-Agent: Thunderbird 2.0.0.14 (X11/20080501) MIME-Version: 1.0 To: frysk Subject: [Fwd: Re: Debugging a NullPointerException in fstack] Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.58 on 172.16.52.254 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/msg00097.txt.bz2 Ray Ruvinskiy wrote: > Phil, > > Thank you very much for the tips. I have filed a bug with the debug > logging output. > > In general, I was wondering what the best way to debug gcj problems > is. Is it possible to make it so that when a program compiled with gcj > throws an exception, the stack trace is displayed, like it would be if > a jar file is run with Sun's jre? Is there any hope in getting gdb to > meaningfully debug gcj-compiled binaries? Ray, You can get line numbers if you edit the frysk/common/Makefile.rules and change the 2 lines that have "demangle=false" to "demangle=true". But, this may not always work as Tom points out in his reply, sometimes exceptions may be lost/swallowed. I have only had a couple of problems with this in my few years of debugging frysk problems though. Rick >