Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* [RFA] Small gdbmi.texinfo cleanup
@ 2002-06-13 22:06 Keith Seitz
  2002-06-15 10:26 ` Eli Zaretskii
  0 siblings, 1 reply; 3+ messages in thread
From: Keith Seitz @ 2002-06-13 22:06 UTC (permalink / raw)
  To: gdb-patches

Hi,

While modifying gdbmi.texinfo for event records, I noticed that several of
the mi command examples were a little off. This patch updates the examples
to reflect reality.

Keith

ChangeLog
2002-06-13  Keith Seitz  <keiths@redhat.com>

        * gdbmi.texinfo: Update command examples with real MI behavior.

Index: gdbmi.texinfo
===================================================================
RCS file: /cvs/src/src/gdb/mi/gdbmi.texinfo,v
retrieving revision 1.26
diff -p -r1.26 gdbmi.texinfo
*** gdbmi.texinfo	25 Feb 2002 02:13:09 -0000	1.26
--- gdbmi.texinfo	14 Jun 2002 05:03:13 -0000
***************
*** 8,14 ****
  @c  @ifinfo
  @c  This file documents GDB/MI, a Machine Interface to GDB.

! @c  Copyright 2000, 2001 Free Software Foundation, Inc.
  @c  Contributed by Cygnus Solutions.

  @c  Permission is granted to copy, distribute and/or modify this document
--- 8,14 ----
  @c  @ifinfo
  @c  This file documents GDB/MI, a Machine Interface to GDB.

! @c  Copyright 2000, 2001, 2002 Free Software Foundation, Inc.
  @c  Contributed by Cygnus Solutions.

  @c  Permission is granted to copy, distribute and/or modify this document
***************
*** 36,42 ****
  @c  @page
  @c  @vskip 0pt plus 1filll

! @c  Copyright @copyright{} 2000, 2001 Free Software Foundation, Inc.

  @c  Permission is granted to copy, distribute and/or modify this document
  @c  under the terms of the GNU Free Documentation License, Version 1.1 or
--- 36,42 ----
  @c  @page
  @c  @vskip 0pt plus 1filll

! @c  Copyright @copyright{} 2000, 2001, 2002 Free Software Foundation, Inc.

  @c  Permission is granted to copy, distribute and/or modify this document
  @c  under the terms of the GNU Free Documentation License, Version 1.1 or
*************** following line is passed to @sc{gdb/mi}
*** 355,361 ****
  the output received from @sc{gdb/mi}.

  @subsubheading Target Stop
!
  Here's an example of stopping the inferior process:

  @example
--- 355,361 ----
  the output received from @sc{gdb/mi}.

  @subsubheading Target Stop
! @c Ummm... There is no "-stop" command. This assumes async, no?
  Here's an example of stopping the inferior process:

  @example
*************** Here's an example of a simple CLI comman
*** 378,384 ****

  @example
  -> print 1+2
! <- ~3\n
  <- (@value{GDBP})
  @end example

--- 378,386 ----

  @example
  -> print 1+2
! <- &"print 1+2\n"
! <- ~"$1 = 3\n"
! <- ^done
  <- (@value{GDBP})
  @end example

*************** Here's what happens if you pass a non-ex
*** 396,402 ****

  @example
  -> -rubbish
! <- error,"Rubbish not found"
  <- (@value{GDBP})
  @end example

--- 398,404 ----

  @example
  -> -rubbish
! <- ^error,msg="Undefined MI command: rubbish"
  <- (@value{GDBP})
  @end example



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

end of thread, other threads:[~2002-06-17 17:31 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-06-13 22:06 [RFA] Small gdbmi.texinfo cleanup Keith Seitz
2002-06-15 10:26 ` Eli Zaretskii
2002-06-17 10:31   ` Keith Seitz

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