>>>>> Matt Welsh writes:

    Matt> Under Linux, try using gdb and running the 'debug' version
    Matt> of the JVM (e.g., 'java_g' rather than 'java').

    Matt> My .gdbinit has the following:

    Matt>   set env THREADS_TYPE=green_threads
    Matt>   set env JAVA_HOME /home/cs/mdw/src/java/download/jdk117_v3
    Matt>   set env CLASSPATH 
.:/home/cs/mdw/src/java/download/jdk117_v3/lib/classes.zip
    Matt>   set env LD_LIBRARY_PATH 
.:/home/cs/mdw/src/java/download/jdk117_v3/lib/i686/green_threads
    Matt>   exec-file 
/home/cs/mdw/src/java/download/jdk117_v3/bin/i686/green_threads/java_g

    Matt> This should allow you to say, e.g., 
    Matt>       (gdb) run MyClass

'DEBUG_PROG=gdb java_g' will work too and is more flexible.


        Juergen

-- 
Juergen Kreileder, Blackdown Java-Linux Porting Team
http://www.blackdown.org/java-linux.html


----------------------------------------------------------------------
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to