可以将调试会话附加到eclipse CDT中的正在运行的程序 [英] Is it possible to attach a debugging session to a running program in eclipse CDT

查看:130
本文介绍了可以将调试会话附加到eclipse CDT中的正在运行的程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在编写一个netscape iplanet插件(在solaris / C上使用eclipse),它基本上是一个具有特定入口点的共享对象,我希望能够使用eclipse的调试器(gdb)来调试共享对象。
我记得在AIX中做类似的操作,可以使xldb附加到正在运行的进程。是否可以让eclipse运行gdb来附加到运行的二进制文件?
我应该期待悲伤,因为我想调试一个动态加载的代码段?

解决方案

是的。您需要进入Lauch Configuration对话框并选择C ++ Attach to ...。根据您的Eclipse版本,可能只有一个或多个C ++附加到...变体。


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?

解决方案

Yes it is. You need to go to the Lauch Configuration Dialog and select "C++ Attach to ...". Depending on your Eclipse version there may be only one or more "C++ Attach to ..." variants available.

这篇关于可以将调试会话附加到eclipse CDT中的正在运行的程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆