views:

973

answers:

2

I'm writing a netscape iplanet plugin (on solaris/C using eclipse) which is basically a shared object with specific entry points, and I'd like to be able to debug the shared object with eclipse's debugger (gdb). I remember doing something similar in AIX where you could make xldb attach to a running process. Is it possible to get eclipse to run gdb to attach to a running binary? And should I expect grief because I want to debug a dynamically loaded piece of code?

A: 

I use Eclipse CDT for HP/UX remote environment. I'm not sure whether it will work for you:

  1. have your app running on unix

  2. go to Run / Debug Configurations / C/C++ Attach to Remote

  3. click Debug and a list of processess will be shown

  4. select the process you want to debug.

Paulo Guedes
+1  A: 
lothar