Re: Debugging Native code on Linux II

1999-07-28 Thread Matt Welsh
This is really getting into gdb questions, rather than Java questions. First, it helps if you use both java_g and be sure to compile your native library with gcc -g (so you have debugging information). "Renaming" the library to use the _g suffix isn't the point; such a library is meant to be com

Re: Debugging Native code on Linux

1999-07-28 Thread Juergen Kreileder
> 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/dow

Re: Debugging Native code on Linux

1999-07-28 Thread Matt Welsh
No, 'dbx' is a debugger similar to 'gdb'. It's not a Java debugger like jdb. Under Linux, try using gdb and running the 'debug' version of the JVM (e.g., 'java_g' rather than 'java'). My .gdbinit has the following: set env THREADS_TYPE=green_threads set env JAVA_HOME /home/cs/mdw/src/java