Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » How to debug JNI DLL?
How to debug JNI DLL? [message #1704233] Sun, 09 August 2015 14:41 Go to next message
Andrzej Borucki is currently offline Andrzej BoruckiFriend
Messages: 13
Registered: August 2013
Junior Member
On github is https://github.com/borisbrodski/sevenzipjbinding
I wanna debug C++ part. I am using Eclipse CDT and compile DLL.
DLL is called by Java part, which is called by batch run.cmd
If I set GDB options to run.cmd - inform me that it is not executable and has not debug info; if I set GDB options to lib7-Zip-JBinding.dll - it is no executable and can't call it.
Re: How to debug JNI DLL? [message #1705977 is a reply to message #1704233] Thu, 20 August 2015 15:56 Go to previous message
denis gilbert is currently offline denis gilbertFriend
Messages: 1
Registered: August 2015
Junior Member
Hi,
I use CDT and JDT with Gcc and Gdb but after many tests I dont succeed !
first start my Java code named Appli in debug mode with a breakpoint just after loadLibrary, before any other call of DLL
create a debug configuration (named DLL) of C/C++ Attach to Application pointing on my dll compiled with debug option, put a break point in C code just at the first function called by java,
run DLL, attach it to the java process running Appli
all seem to be ok
continue Java running by F6 on the native function to call
and obtain :
org.eclipse.jdi.TimeoutException. Timeout occured while waiting for packet xxx. occured resuming thread.

I search many google references, no way, grrr !
any idea ?
Previous Topic:How to combine Eclipse and Xcode (Mac OS X Yosemite)
Next Topic:debugging errors
Goto Forum:
  


Current Time: Mon Sep 09 03:16:21 GMT 2024

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

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

Back to the top