Subj : Problems debugging shared object code called from Java JNI To : comp.os.linux.development,comp.os.linux From : Exits Funnel Date : Wed Dec 01 2004 08:28 pm Hello, I'm currently working a project which comprises a Java API layer and a native C++ piece (which I'll call the driver). Only the java API is exposed to our clients. Internally, the java makes calls to the C++ through JNI. We port the native stuff to several platforms including RedHat linux on which we generate from it a shared object. I'm trying to figure out how to use gdb to debug the driver but having no luck. I want to be able to set a breakpoint in one of the native source files and then launch the java process on some java test code which results in calls into the shared object - thereby letting me do source level debugging in the shared object. Just to be clear, I'm not trying to debug the java code, just the shared object. I can do this in the developer studio on Windows so I'd be surprised if I couldn't do it with gdb but I can't figure it out. I've tried this: gdb --args java MyTest run but gdb complains about 'no debugging symbols found' and also that it 'Cannot find user-level thread for LWP 4494: generic error.' Does anyone have any suggestions. Thanks in advance for any help. -exits .