From: Vladimir Prus <vladimir@codesourcery.com>
To: gdb@sources.redhat.com
Subject: Re: GDB GUI
Date: Wed, 04 Nov 2009 15:02:00 -0000 [thread overview]
Message-ID: <hcs508$rb0$1@ger.gmane.org> (raw)
In-Reply-To: <0F6AD058-C87F-4E6E-9CA2-0B7F2342AD5E@gmail.com>
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
next prev parent reply other threads:[~2009-11-04 15:02 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-11-02 10:57 Marco Menegazzi
2009-11-02 16:36 ` Sérgio Durigan Júnior
2009-11-04 14:30 ` Marco Menegazzi
2009-11-04 14:36 ` André Pönitz
2009-11-04 15:02 ` Vladimir Prus [this message]
2009-11-04 20:06 ` Sérgio Durigan Júnior
2009-11-04 20:15 ` Joel Brobecker
2009-11-05 8:10 ` Nick Roberts
2009-11-06 16:41 ` Marco Menegazzi
2009-11-07 6:58 ` Nick Roberts
2009-11-07 10:20 ` Daniel Jacobowitz
2009-11-07 11:22 ` Marc Khouzam
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='hcs508$rb0$1@ger.gmane.org' \
--to=vladimir@codesourcery.com \
--cc=gdb@sources.redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox