From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12519 invoked by alias); 28 Oct 2005 14:03:32 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 12500 invoked by uid 22791); 28 Oct 2005 14:03:28 -0000 Received: from fra-del-01.spheriq.net (HELO fra-del-01.spheriq.net) (195.46.51.97) by sourceware.org (qpsmtpd/0.30-dev) with ESMTP; Fri, 28 Oct 2005 14:03:28 +0000 Received: from fra-out-03.spheriq.net (fra-out-03.spheriq.net [195.46.51.131]) by fra-del-01.spheriq.net with ESMTP id j9SE3N8E022880 for ; Fri, 28 Oct 2005 14:03:23 GMT Received: from fra-cus-02.spheriq.net (fra-cus-02.spheriq.net [195.46.51.38]) by fra-out-03.spheriq.net with ESMTP id j9SE3M7i020583 for ; Fri, 28 Oct 2005 14:03:22 GMT Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by fra-cus-02.spheriq.net with ESMTP id j9SE3EdR013951 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=OK); Fri, 28 Oct 2005 14:03:17 GMT Received: from zeta.dmz-eu.st.com (ns2.st.com [164.129.230.9]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 4282CDA48; Fri, 28 Oct 2005 14:01:06 +0000 (GMT) Received: by zeta.dmz-eu.st.com (STMicroelectronics, from userid 60012) id 588DD4744F; Fri, 28 Oct 2005 14:03:56 +0000 (GMT) Received: from zeta.dmz-eu.st.com (localhost [127.0.0.1]) by zeta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 18C2575995; Fri, 28 Oct 2005 14:03:56 +0000 (UTC) Received: from mail1.bri.st.com (mail1.bri.st.com [164.129.8.218]) by zeta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 9D3854744E; Fri, 28 Oct 2005 14:03:55 +0000 (GMT) Received: from [164.129.15.13] (terrorhawk.bri.st.com [164.129.15.13]) by mail1.bri.st.com (MOS 3.5.8-GR) with ESMTP id CEP00317 (AUTH "andrew stubbs"); Fri, 28 Oct 2005 15:01:04 +0100 (BST) Message-ID: <43622EB4.3000804@st.com> Date: Fri, 28 Oct 2005 14:03:00 -0000 From: Andrew STUBBS User-Agent: Mozilla Thunderbird 1.0.2 (Windows/20050317) MIME-Version: 1.0 To: Eli Zaretskii Cc: gdb@sources.redhat.com Subject: Re: RFC: GDB as a loader 3/3: --eval-command option References: <4354DD31.3020809@st.com> <43620692.2000409@st.com> In-Reply-To: Content-Type: multipart/mixed; boundary="------------000808000706090209000404" X-O-Spoofed: Not Scanned X-O-General-Status: No X-O-Spam1-Status: Not Scanned X-O-Spam2-Status: Not Scanned X-O-URL-Status: Not Scanned X-O-Virus1-Status: No X-O-Virus2-Status: Not Scanned X-O-Virus3-Status: No X-O-Virus4-Status: No X-O-Virus5-Status: Not Scanned X-O-Image-Status: Not Scanned X-O-Attach-Status: Not Scanned X-SpheriQ-Ver: 4.1.07 X-SW-Source: 2005-10/txt/msg00187.txt.bz2 This is a multi-part message in MIME format. --------------000808000706090209000404 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-length: 348 > Please make the example shorter, because this is too long and will > overflow the page margins. (Alternatively, break the command into two > lines, and put a `\' at the end of the first one, as you'd do at the > shell's prompt.) > I've wrapped it. What is the proper width? It fitted into 80 columns ok so I thought it would be fine. Andrew --------------000808000706090209000404 Content-Type: text/plain; name="eval-command-docs.patch" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="eval-command-docs.patch" Content-length: 972 2005-10-28 Andrew Stubbs * gdb.texinfo (Choosing files): Add --eval-command. Index: src/gdb/doc/gdb.texinfo =================================================================== --- src.orig/gdb/doc/gdb.texinfo 2005-10-28 14:39:29.000000000 +0100 +++ src/gdb/doc/gdb.texinfo 2005-10-28 14:43:37.000000000 +0100 @@ -932,6 +932,20 @@ file named @var{number}. Execute @value{GDBN} commands from file @var{file}. @xref{Command Files,, Command files}. +@item -eval-command @var{command} +@itemx -ex @var{command} +@cindex @code{--eval-command} +@cindex @code{-ex} +Execute a single @value{GDBN} command. + +This option may be used multiple times to call multiple commands. It may +also be interleaved with @samp{-command} as required. + +@smallexample +@value{GDBP} -ex 'target sim' -ex 'load' \ + -x setbreakpoints -ex 'run' a.out +@end smallexample + @item -directory @var{directory} @itemx -d @var{directory} @cindex @code{--directory} --------------000808000706090209000404--