Java API for gdb (GNU Debugger)
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.
精彩评论