From: Hossein Aminaiee <aminaiee@gmail.com>
To: Rob Quill <rob.quill@gmail.com>
Cc: gdb@sourceware.org
Subject: Re: GDB reference manual
Date: Wed, 30 May 2007 09:40:00 -0000 [thread overview]
Message-ID: <1180517570.7120.13.camel@delaram> (raw)
In-Reply-To: <baf6008d0705280707v719d7fd2w93ad6d4d5efafdc6@mail.gmail.com>
Hi,
I read the manual and I found the GDB/MI useful. I really appreciate
your help. What I guessed from the manual that one should start a gdb
process in the background and communicate with it using the GDB/MI
commands. Am I wrong? But how to send MI commands to the GDB? Should GDB
be started using the input/output redirection?
Is there any tiny source examples of using GDB/MI? Specially
demonstrating the communication with GDB from a programmers point of
view?
I explored a couple of frontends for GDB like rhide and I figured out
that they've added the GDB/MI source files to their project and compiled
them into their binaries. But what about the libgdb? Is it possible to
use libgdb.so?
Cheers,
Hossein Aminaiee
On Mon, 2007-05-28 at 15:07 +0100, Rob Quill wrote:
> On 28/05/07, Hossein Aminaiee <aminaiee@gmail.com> wrote:
> > Hi,
> >
> > I have searched the whole GDB internal manual and I could find
> > explanations on ui_* but gdb_* functions. Would you please indicate the
> > exact page of which manual? Please send me the url of the manual you are
> > using.
>
> It can be found in the GDB user guide, not the internals manual. It is
> under chapter 24. Quoting from the start of this chapter:
>
> "gdb/mi is a line based machine oriented text interface to gdb and is
> activated by specifying
> using the '--interpreter' command line option (see Section 2.1.2 [Mode
> Options], page 13).
> It is specifically intended to support the development of systems
> which use the debugger as
> just one small component of a larger system."
>
> Hope that helps.
>
> Rob Quill
>
> >
> > Cheers,
> > Hossein Aminaiee
> >
> >
> > On Mon, 2007-05-28 at 08:54 -0700, Daniel Jacobowitz wrote:
> > > On Mon, May 28, 2007 at 03:42:31PM +0330, Hossein Aminaiee wrote:
> > > > Hi all,
> > > > I've developed an IDE for C++ and I'm about to provide a debugger for
> > > > it using GDB. But I could not find any reference manual containing the
> > > > gdb_* functions (API) listings and explanations.
> > >
> > > That's because you shouldn't be using those. Use GDB/MI, which is
> > > described in the manual.
> > >
> >
> >
next prev parent reply other threads:[~2007-05-30 9:40 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-05-28 12:23 Hossein Aminaiee
2007-05-28 12:54 ` Daniel Jacobowitz
2007-05-28 13:53 ` Hossein Aminaiee
2007-05-28 14:07 ` Rob Quill
2007-05-30 9:40 ` Hossein Aminaiee [this message]
2007-05-30 15:24 ` Daniel Jacobowitz
2007-05-30 15:20 ` Hossein Aminaiee
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=1180517570.7120.13.camel@delaram \
--to=aminaiee@gmail.com \
--cc=gdb@sourceware.org \
--cc=rob.quill@gmail.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