From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8117 invoked by alias); 14 Jun 2002 05:06:03 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 8110 invoked from network); 14 Jun 2002 05:06:03 -0000 Received: from unknown (HELO cygnus.com) (205.180.83.203) by sources.redhat.com with SMTP; 14 Jun 2002 05:06:03 -0000 Received: from makita.cygnus.com (makita.sfbay.redhat.com [192.168.30.83]) by runyon.cygnus.com (8.8.7-cygnus/8.8.7) with ESMTP id WAA23578 for ; Thu, 13 Jun 2002 22:06:02 -0700 (PDT) Received: from localhost (keiths@localhost) by makita.cygnus.com (8.8.8+Sun/8.6.4) with ESMTP id WAA11783 for ; Thu, 13 Jun 2002 22:06:01 -0700 (PDT) X-Authentication-Warning: makita.cygnus.com: keiths owned process doing -bs Date: Thu, 13 Jun 2002 22:06:00 -0000 From: Keith Seitz X-X-Sender: To: Subject: [RFA] Small gdbmi.texinfo cleanup Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-SW-Source: 2002-06/txt/msg00240.txt.bz2 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 * 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