From owner-freebsd-java Mon Feb 17 22:58: 0 2003 Delivered-To: freebsd-java@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4A2DE37B401 for ; Mon, 17 Feb 2003 22:57:58 -0800 (PST) Received: from relay1.cris.net (relay1.cris.net [212.110.128.64]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8179643F75 for ; Mon, 17 Feb 2003 22:57:55 -0800 (PST) (envelope-from ml@phantom.cris.net) Received: from phantom.cris.net (root@phantom.cris.net [212.110.130.74]) by relay1.cris.net (8.12.6/8.12.6) with ESMTP id h1I94nvb027621; Tue, 18 Feb 2003 09:04:50 GMT Received: (from ml@localhost) by phantom.cris.net (8.12.6/8.12.2) id h1I74hLa039535; Tue, 18 Feb 2003 09:04:43 +0200 (EET) (envelope-from ml) Date: Tue, 18 Feb 2003 09:04:43 +0200 From: Alexey Zelkin To: Brent Verner Cc: freebsd-java@FreeBSD.ORG Subject: Re: how to debug jdk14 with gdb on -current Message-ID: <20030218090443.A39510@phantom.cris.net> References: <20030218043635.GA379@rcfile.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20030218043635.GA379@rcfile.org>; from brent@rcfile.org on Mon, Feb 17, 2003 at 11:36:35PM -0500 X-Operating-System: FreeBSD 4.7-STABLE i386 Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org hi, Are you really want to do it ? :) Two ways: 1. simply press 'c' and continue (some gdb's features won't be available in this case, like 'info threads', etc), but everything will work. 2. set breakpoint to SetLibraryPath(), find a 'newenv' variable content (calculated in this function), exit gdb, set *newenv variable of shell environment and start gdb again... Problem is gone. All features of gdb work like a charm :) On Mon, Feb 17, 2003 at 11:36:35PM -0500, Brent Verner wrote: > Hi all. > > I'm having no luck using the gdb on -current to run the jvm. > What I get is: > > -bash-2.05b$ gdb /usr/local/jdk1.4.1-bsd/bin/java_g > GNU gdb 5.2.1 (FreeBSD) > Copyright 2002 Free Software Foundation, Inc. > GDB is free software, covered by the GNU General Public License, and you are > welcome to change it and/or distribute copies of it under certain conditions. > Type "show copying" to see the conditions. > There is absolutely no warranty for GDB. Type "show warranty" for details. > This GDB was configured as "i386-undermydesk-freebsd"... > (gdb) run Bind localhost > Starting program: /usr/local/jdk1.4.1-bsd/bin/java_g Bind localhost > > Program received signal SIGTRAP, Trace/breakpoint trap. > 0x28051260 in .rtld_start () from /usr/libexec/ld-elf.so.1 > Error accessing memory address 0x28088bd0: Bad address. > (gdb) > > > Can someone help me out and tell me how to run the jvm under > gdb (on -current)? > > thanks. > brent > > -- > "Develop your talent, man, and leave the world something. Records are > really gifts from people. To think that an artist would love you enough > to share his music with anyone is a beautiful thing." -- Duane Allman > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-java" in the body of the message To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message