From owner-freebsd-java@FreeBSD.ORG Thu Feb 26 20:15:09 2009 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 84F45106564A for ; Thu, 26 Feb 2009 20:15:09 +0000 (UTC) (envelope-from brian@experts-exchange.com) Received: from mail.experts-exchange.com (mail.experts-exchange.com [64.156.132.251]) by mx1.freebsd.org (Postfix) with ESMTP id 737C18FC1B for ; Thu, 26 Feb 2009 20:15:09 +0000 (UTC) (envelope-from brian@experts-exchange.com) Received: from [192.168.103.26] (unknown [72.29.180.81]) by mail.experts-exchange.com (Postfix) with ESMTP id ACA134A3091B; Thu, 26 Feb 2009 12:15:08 -0800 (PST) Message-ID: <49A6F84E.1080504@experts-exchange.com> Date: Thu, 26 Feb 2009 12:15:10 -0800 From: Brian Gardner User-Agent: Thunderbird 2.0.0.19 (Windows/20081209) MIME-Version: 1.0 To: freebsd-java@freebsd.org, bsd-port-dev@openjdk.java.net Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Subject: gdb and java X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 26 Feb 2009 20:15:10 -0000 I've had success in debugging java using jdb, however this doesn't seem to support native debugging. I'd like to use gdb but this doesn't work with (the error is bellow). Currently I'm printing to stderr from native code but this is less than ideal and time consuming, any ideas? # gdb jmap (gdb) run -finalizerinfo 118 Starting program: /usr/home/brian/openjdk6/freshv2.2/bsd-port6.modified/build/bsd-amd64/j2sdk-image/bin/jmap -finalizerinfo 118 (no debugging symbols found)...(no debugging symbols found)...[New LWP 104363] (no debugging symbols found)...(no debugging symbols found)...[New Thread 0x800b01120 (LWP 104363)] [New LWP 104363] Program received signal SIGTRAP, Trace/breakpoint trap. [Switching to LWP 104363] Cannot remove breakpoints because program is no longer writable. It might be running in another process. Further execution is probably impossible. 0x000000080050d360 in ?? () from /libexec/ld-elf.so.1 (gdb)