This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[RFA] Small gdbmi.texinfo cleanup


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



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]