GDB GUI
Vladimir Prus
vladimir@codesourcery.com
Wed Nov 4 15:02:00 GMT 2009
Marco Menegazzi wrote:
>
> Thank you.
>
> I've already seen that documentation but my problem is that it does
> not explain how to connect to this interface through code. It explains
> how it is but not how to use it ... I want to connect through my java
> code but the only idea I have is to call it directly from the code
> with Runtime.exec ... but then I ask myself why to use gdb/mi that
> returns a more complex output instead of calling directly gdb and
> parse the stout to get what I want?
Eclipse CDT has an implementation of all this. Look for things such
as MIInferior, RxThread and TxThread in a full CDT checkout.
As for parsing stdout -- traditional GDB output is meant for humans. Unless
you plan on adding AI module to your application, it's just not possible
to reliably parse it.
- Volodya
More information about the Gdb
mailing list