From owner-freebsd-java Mon Mar 9 03:08:55 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id DAA21296 for freebsd-java-outgoing; Mon, 9 Mar 1998 03:08:55 -0800 (PST) (envelope-from owner-freebsd-java@FreeBSD.ORG) Received: from northwest.com (port28.northwest.com [204.119.42.40]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id DAA21243 for ; Mon, 9 Mar 1998 03:08:46 -0800 (PST) (envelope-from stevemw@northwest.com) Received: from fuji (localhost [127.0.0.1]) by northwest.com (8.8.7/8.8.7) with ESMTP id CAA10873; Mon, 9 Mar 1998 02:55:15 -0800 (PST) (envelope-from stevemw@fuji) Message-Id: <199803091055.CAA10873@northwest.com> To: "Simon J. Gerraty" cc: freebsd-java@FreeBSD.ORG Subject: Re: VM Debugging: Problem with GDB and Shared Libs In-reply-to: Your message of "Mon, 09 Mar 1998 14:58:40 +1100." <199803090358.OAA29401@gate.quick.com.au> Date: Mon, 09 Mar 1998 02:55:15 -0800 From: Stephen Wynne Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org In message <199803090358.OAA29401@gate.quick.com.au>, "Simon J. Gerraty" writes: I've been doing a bit of this recently (on NetBSD which I'll assume is close enough), so this should point you in the right direction. Thanks! Here's your advice in a nutshell: (gdb) b main ... (gdb) r t ... (gdb) b java_main ... (gdb) c ... (gdb) b sysAddDLSegment ... (gdb) c ... (gdb) finish ... Now libawt.so is loaded into the VM... (gdb) b awt_util_reshape ... and there you have it. This was extremely useful. I was able to load all kinds of library symbols after getting to the breakpoint of sysAddDLSegment. With what you and Damon Permezel told me, I'm doing fine. I also "set verbose 1" and was able to watch symbols being loaded as I went along. It's interesting to see that AWT has timing problems under the debugger. And SwingSet seems just impossible to debug because it's too slow (or gets stuck in some kind of loop). Thanks, Steve To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message