开发者

Java API for gdb (GNU Debugger)

开发者 https://www.devze.com 2023-04-10 23:10 出处:网络
I would like to control the gdb (GNU Debugger) from a Java Application: start a debugging session, setting breakpoints, stepping etc.

I would like to control the gdb (GNU Debugger) from a Java Application: start a debugging session, setting breakpoints, stepping etc. One solution for this problem is of course to run the gdb via:

Runtime.exec(String command);

The downside of this approach is the additional coding eff开发者_Go百科ort for parsing results, sending commands etc. To overcome this, I would like to use an existing API or library (preferably written in Java) which acts as middleware between my Java program and the gdb.


Try looking at the Eclipse CDT source. It is open source and you could even integrate it into whatever you're building.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号