Skip to main content



      Home
Home » Language IDEs » C / C++ IDE (CDT) » mixed debugging
mixed debugging [message #223489] Thu, 11 September 2008 17:00 Go to next message
Eclipse UserFriend
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 Go to previous message
Eclipse UserFriend
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?
>
>
>
>
Previous Topic:Syntax Coloring issue: bright background between #if and #endif
Next Topic:Code formatting problem with CPPUNIT
Goto Forum:
  


Current Time: Sat Jun 07 11:26:04 EDT 2025

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

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

Back to the top