Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » What's the trick to debugging a C shared library called by Java via JNI?
What's the trick to debugging a C shared library called by Java via JNI? [message #164355] Thu, 23 February 2006 16:37
Eclipse UserFriend
Originally posted by: jancewicz.comcast.net

I am debugging a Java application that uses JNI to call C functions in a
shared library. I can step through my Java code with the Eclipse debug view
up to a point just after the library is loaded into memory by the
loadLibrary() call. At that point, with the Insight debugger, I can attach
to the JVM running my Java app and debug my C code in the shared library.

However, when I try to do the same thing using my shared library project
under the CDT debug view in Eclipse, gdb chokes and says it "cannot access
memory".

Are there any suggestions for how to work around this problem?

Thanks in advance,

Nick
Previous Topic:changing the compiler on CDT
Next Topic:Ada support
Goto Forum:
  


Current Time: Wed Jan 15 09:15:53 GMT 2025

Powered by FUDForum. Page generated in 0.04156 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top