Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* GDB reference manual
@ 2007-05-28 12:23 Hossein Aminaiee
  2007-05-28 12:54 ` Daniel Jacobowitz
  0 siblings, 1 reply; 7+ messages in thread
From: Hossein Aminaiee @ 2007-05-28 12:23 UTC (permalink / raw)
  To: gdb

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.

	I wonder how people could develop IDEs and GDB frontends like anjuta,
Kgdb, xgdb and so on using GDB. I might be missing some manuals. I'd
really appreciate it if someone could tell me where to find the manuals.

Cheers,
Hossein Aminaiee


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: GDB reference manual
  2007-05-28 12:23 GDB reference manual Hossein Aminaiee
@ 2007-05-28 12:54 ` Daniel Jacobowitz
  2007-05-28 13:53   ` Hossein Aminaiee
  0 siblings, 1 reply; 7+ messages in thread
From: Daniel Jacobowitz @ 2007-05-28 12:54 UTC (permalink / raw)
  To: Hossein Aminaiee; +Cc: gdb

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.

-- 
Daniel Jacobowitz
CodeSourcery


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: GDB reference manual
  2007-05-28 12:54 ` Daniel Jacobowitz
@ 2007-05-28 13:53   ` Hossein Aminaiee
  2007-05-28 14:07     ` Rob Quill
  0 siblings, 1 reply; 7+ messages in thread
From: Hossein Aminaiee @ 2007-05-28 13:53 UTC (permalink / raw)
  To: Daniel Jacobowitz; +Cc: gdb

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.

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.
> 


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: GDB reference manual
  2007-05-28 13:53   ` Hossein Aminaiee
@ 2007-05-28 14:07     ` Rob Quill
  2007-05-30  9:40       ` Hossein Aminaiee
  2007-05-30 15:20       ` Hossein Aminaiee
  0 siblings, 2 replies; 7+ messages in thread
From: Rob Quill @ 2007-05-28 14:07 UTC (permalink / raw)
  To: Hossein Aminaiee; +Cc: Daniel Jacobowitz, gdb

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.
> >
>
>


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: GDB reference manual
  2007-05-28 14:07     ` Rob Quill
@ 2007-05-30  9:40       ` Hossein Aminaiee
  2007-05-30 15:24         ` Daniel Jacobowitz
  2007-05-30 15:20       ` Hossein Aminaiee
  1 sibling, 1 reply; 7+ messages in thread
From: Hossein Aminaiee @ 2007-05-30  9:40 UTC (permalink / raw)
  To: Rob Quill; +Cc: gdb

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.
> > >
> >
> >


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: GDB reference manual
  2007-05-28 14:07     ` Rob Quill
  2007-05-30  9:40       ` Hossein Aminaiee
@ 2007-05-30 15:20       ` Hossein Aminaiee
  1 sibling, 0 replies; 7+ messages in thread
From: Hossein Aminaiee @ 2007-05-30 15:20 UTC (permalink / raw)
  To: gdb

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.
> > >
> >
> >


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: GDB reference manual
  2007-05-30  9:40       ` Hossein Aminaiee
@ 2007-05-30 15:24         ` Daniel Jacobowitz
  0 siblings, 0 replies; 7+ messages in thread
From: Daniel Jacobowitz @ 2007-05-30 15:24 UTC (permalink / raw)
  To: Hossein Aminaiee; +Cc: Rob Quill, gdb

On Wed, May 30, 2007 at 01:02:49PM +0330, Hossein Aminaiee wrote:
> 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?

Right.

> 	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? 

Not really.

-- 
Daniel Jacobowitz
CodeSourcery


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2007-05-30 15:24 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-05-28 12:23 GDB reference manual 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
2007-05-30 15:24         ` Daniel Jacobowitz
2007-05-30 15:20       ` Hossein Aminaiee

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox