Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Marco Menegazzi <mene.thebear@gmail.com>
To: "Sérgio Durigan Júnior" <sergiodj@linux.vnet.ibm.com>
Cc: gdb@sourceware.org
Subject: Re: GDB GUI
Date: Wed, 04 Nov 2009 14:30:00 -0000	[thread overview]
Message-ID: <0F6AD058-C87F-4E6E-9CA2-0B7F2342AD5E@gmail.com> (raw)
In-Reply-To: <200911021436.46359.sergiodj@linux.vnet.ibm.com>


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?

Sorry if my questions appear to be stupid but I'm very new of this ...

Il giorno 02/nov/2009, alle ore 17.36, Sérgio Durigan Júnior ha scritto:

> Hi Marco,
>
> On Monday 02 November 2009, Marco Menegazzi wrote:
>> Hi!
>> I'm new with gdb and I need help about writing a simple gui to  
>> control
>> gdb output.
>> I just need something that permits me to send commands as from the
>> textual interface and receive output as it is ... the main aspect  
>> I've
>> to work on is variable inspection so I don't need to create a real
>> frontend with a mess of functions ... I just need something that
>> permits me to start gdb under a Java (for example) program and  
>> control
>> it as I am writing on terminal.
>
> I believe you're looking for the GDB MI interface.  You can find more
> information about it here:
>
> http://sources.redhat.com/gdb/onlinedocs/gdb_28.html#SEC274
>
> If you have any question that are not answered by the manual, get  
> back to this
> mailing list :-).
>
> -- 
> Sérgio Durigan Júnior
> Linux on Power Toolchain - Software Engineer
> Linux Technology Center - LTC
> IBM Brazil


  reply	other threads:[~2009-11-04 14:30 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 [this message]
2009-11-04 14:36     ` André Pönitz
2009-11-04 15:02     ` Vladimir Prus
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=0F6AD058-C87F-4E6E-9CA2-0B7F2342AD5E@gmail.com \
    --to=mene.thebear@gmail.com \
    --cc=gdb@sourceware.org \
    --cc=sergiodj@linux.vnet.ibm.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