Re: [java-gnome-hackers] Debugging Native code
Brought to you by:
afcowie
From: Jeffrey M. <ku...@zo...> - 2002-08-31 12:07:07
|
Debugging the native code is not that simple. You will need the source code for the libraries you wish to debug and the code needs to match the installed apps. What I usually do is set a breakpoint in the java code immediately after the native library is loaded. Then you can use a debugger (gdb, ddd, or eclipse) to attach to the running shared object. Once this is done place a breakpoint in the C code at the place you wish to debug. Perhaps I can have a look today. -Jeff On Fri, 2002-08-30 at 19:56, Philip A. Chapman wrote: > Jeff, > > I'm having issues with the TestGNOME application. The first button > creates an About object instance and shows it. By putting > System.out.println()'s in About.java, I've determined that the code is > hanging in the call to java_about_new in org_gnu_gnome_About.c. > Therefore, I need to do some debugging in the native code to determine > what's happening. > > I'm about to install eclipse in hopes that it has good debugging into > jni calls. If you have any tips or tricks you've picked up on how to > debug jni calls, I'd appreciate them. > > It appears that the other classes the TestGNOME application have similar > problem too. > > I wanted to install eclipse anyway, but haven't taken the time until > now. :-) > -- > Philip A. Chapman |