Discussion:
[Dev-C++] How do I attach the debugger to a running process?
Kevin Lahey
2003-03-12 21:36:13 UTC
Permalink
Hello,

I want to attach a dll to a running process so I can debug the dll. Can the
latest release do this? My understanding is that the debugger is built over
GDB which can certainly do it.

Thank you,
Kevin

__________________________________________________
Do you Yahoo!?
Yahoo! Web Hosting - establish your business online
http://webhosting.yahoo.com
M***@pilz.ie
2003-03-14 06:38:06 UTC
Permalink
Here is an article on debugging a GNU DLL called from a java program :-

http://www-106.ibm.com/developerworks/java/library/j-jnidebug/


You can simply specify you exe in "execute->parameters" menu option in
Dev-C++ and compile DLL in debug and set a breakpoint
inside it. Should work ... in theory.


Maurice
Kevin Lahey
2003-03-17 14:22:42 UTC
Permalink
Thanks Maurice,

I had seen the article before and it is what I want to do. The author uses GDB
to attach to a process. Since Dev-C++ is built over GDB it should be able to
do the same thing. By attaching a running process I can switch back and forth
between java and C++ IDEs.

Does Dev-C++ pass commands to GDB much like a command line? Or does it call
low level functions directly? If it is the first one then maybe I could modify
the code to simply pass the "attach <PID>" to GDB. I don't relish the idea of
building and modifying a large program for such a small change but I might do
it when I had some free time. If it means learning a large complex interface
than I will just use VC++.

If anyone knows the answer to these questions I would appreciate any info.

Thanks,
Kevin
Post by M***@pilz.ie
Here is an article on debugging a GNU DLL called from a java program :-
http://www-106.ibm.com/developerworks/java/library/j-jnidebug/
You can simply specify you exe in "execute->parameters" menu option in
Dev-C++ and compile DLL in debug and set a breakpoint
inside it. Should work ... in theory.
Maurice
Hello,
I want to attach a dll to a running process so I can debug the dll. Can the
latest release do this? My understanding is that the debugger is built over
GDB which can certainly do it.
Thank you,
Kevin
__________________________________________________
Do you Yahoo!?
Yahoo! Web Hosting - establish your business online
http://webhosting.yahoo.com
__________________________________________________
Do you Yahoo!?
Yahoo! Web Hosting - establish your business online
http://webhosting.yahoo.com

Continue reading on narkive:
Loading...