mixed debugging [message #223489] |
Thu, 11 September 2008 17:00  |
Eclipse User |
|
|
|
Originally posted by: dontreplyhere.inter.net
I started Eclipse CDT in order to integrate Java and C++ JNI programming.
I got an Eclipse Ganymede IDE with both Java and C++ projects
In C++ I built my JNI library for Linux and can load it from Java.
I can run the c++ native methods from Java.
Eclipse Debugging works fine in Java.
Eclipse Debugging works fine, if I have a C++ main app calling my shared
library,
I can easily step into the lib.
If I run my Java app, I can attach a console - gdb to java,
it finds my lib and loads the symbols,
I can set a breakpoint (e.g. by function name) and continue and get
triggered when
the app reaches that function. (All nice but command line based only)
I can understand simply stepping into (F5) from java to c++ won't work,
so I run a second debugger (gdb attaching to java process) but I can't
hit a breakpoint which I set via Eclipse. It simply runs through my lib.
I guess that should be easily doable, but I'm stuck.
Any quick hints?
|
|
|
Re: mixed debugging [message #223789 is a reply to message #223489] |
Thu, 18 September 2008 17:56  |
Eclipse User |
|
|
|
Hi,
I've never worked with it but you could take a look at this one:
http://wiki.eclipse.org/Support_seamless_debugging_between_J DT_and_CDT
Greets
Benny
Michael Hesselbach wrote:
> I started Eclipse CDT in order to integrate Java and C++ JNI programming.
> I got an Eclipse Ganymede IDE with both Java and C++ projects
> In C++ I built my JNI library for Linux and can load it from Java.
> I can run the c++ native methods from Java.
> Eclipse Debugging works fine in Java.
> Eclipse Debugging works fine, if I have a C++ main app calling my shared
> library,
> I can easily step into the lib.
>
> If I run my Java app, I can attach a console - gdb to java,
> it finds my lib and loads the symbols,
> I can set a breakpoint (e.g. by function name) and continue and get
> triggered when
> the app reaches that function. (All nice but command line based only)
>
> I can understand simply stepping into (F5) from java to c++ won't work,
> so I run a second debugger (gdb attaching to java process) but I can't
> hit a breakpoint which I set via Eclipse. It simply runs through my lib.
>
> I guess that should be easily doable, but I'm stuck.
> Any quick hints?
>
>
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.05634 seconds