Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 12 Sep 2000 23:37:13 +0200
From:      Kees Jan Koster <dutchman@tccn.cs.kun.nl>
To:        FreeBSD Java Mailinglist <freebsd-java@freebsd.org>
Subject:   Putting GDB to work
Message-ID:  <39BEA209.70D45A68@tccn.cs.kun.nl>

next in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?39BEA209.70D45A68>