From owner-freebsd-java Tue Sep 12 14:37:20 2000 Delivered-To: freebsd-java@freebsd.org Received: from tccn.cs.kun.nl (tccn.cs.kun.nl [131.174.32.38]) by hub.freebsd.org (Postfix) with ESMTP id 7B31A37B42C for ; Tue, 12 Sep 2000 14:37:17 -0700 (PDT) Received: from tccn.cs.kun.nl (1Cust237.tnt23.rtm1.nl.uu.net [213.116.140.237]) by tccn.cs.kun.nl (8.9.2/8.9.2) with ESMTP id XAA14085 for ; Tue, 12 Sep 2000 23:34:31 +0200 (CEST) (envelope-from dutchman@tccn.cs.kun.nl) Message-ID: <39BEA209.70D45A68@tccn.cs.kun.nl> Date: Tue, 12 Sep 2000 23:37:13 +0200 From: Kees Jan Koster X-Mailer: Mozilla 4.75 [en] (X11; U; FreeBSD 4.1-STABLE i386) X-Accept-Language: en MIME-Version: 1.0 To: FreeBSD Java Mailinglist Subject: Putting GDB to work Content-Type: multipart/mixed; boundary="------------B54F17A68A10D6587D33D8DF" Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org This is a multi-part message in MIME format. --------------B54F17A68A10D6587D33D8DF Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Dear All, I have written a small description on how to debug core dumps and how to start java inside gdb. I think this is best done with the attached patch to .java_wrapper. More information at: http://web.inter.nl.net/users/kjkoster/java/content/howto.html#hd07 While I'm on the subject of debugging: Andrew Gallatin is trying to get IBM's Linux JDK to work on FreeBSD. If you can spare a little time, please help him out. More information at http://web.inter.nl.net/users/kjkoster/java/content/unrelated.html#hd05 Cheers, Kees Jan ---------------------------------------------------------------------- Kees Jan Koster e-mail: k.j.koster "at" kpn.com ---------------------------------------------------------------------- Calvin: "Sometimes the world seems like a pretty mean place." Hobbes: "That's why animals are so soft and huggy." --------------B54F17A68A10D6587D33D8DF Content-Type: text/plain; charset=us-ascii; name="wrapper.diff" Content-Disposition: inline; filename="wrapper.diff" Content-Transfer-Encoding: 7bit --- .java_wrapper.orig Sun Aug 6 12:38:59 2000 +++ .java_wrapper Tue Sep 12 22:59:45 2000 @@ -125,7 +125,15 @@ # Run. if [ -x "$prog" ] then - exec $DEBUG_PROG "$prog" "$@" + if [ x"$DEBUG_PROG" = x"gdb" ] + then + TMPFILE=`mktemp -t ${progname}` || exit 1 + echo "set args $@" > $TMPFILE + cat -u $TMPFILE /dev/stdin | gdb "$prog" + rm $TMPFILE + else + exec $DEBUG_PROG "$prog" "$@" + fi else echo >&2 "$progname was not found in ${prog}" exit 1 --------------B54F17A68A10D6587D33D8DF-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message