From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2341 invoked by alias); 28 Oct 2005 11:10:17 -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 2323 invoked by uid 22791); 28 Oct 2005 11:10:14 -0000 Received: from fra-del-02.spheriq.net (HELO fra-del-02.spheriq.net) (195.46.51.98) by sourceware.org (qpsmtpd/0.30-dev) with ESMTP; Fri, 28 Oct 2005 11:10:14 +0000 Received: from fra-out-01.spheriq.net (fra-out-01.spheriq.net [195.46.51.129]) by fra-del-02.spheriq.net with ESMTP id j9SBABcW002035 for ; Fri, 28 Oct 2005 11:10:11 GMT Received: from fra-cus-02.spheriq.net (fra-cus-02.spheriq.net [195.46.51.38]) by fra-out-01.spheriq.net with ESMTP id j9SBA9j6001593 for ; Fri, 28 Oct 2005 11:10:10 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 j9SB9rwA014838 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=OK) for ; Fri, 28 Oct 2005 11:10:05 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 CA4A1DA4E for ; Fri, 28 Oct 2005 11:09:51 +0000 (GMT) Received: by zeta.dmz-eu.st.com (STMicroelectronics, from userid 60012) id D9D4A47384; Fri, 28 Oct 2005 11:12:41 +0000 (GMT) Received: from zeta.dmz-eu.st.com (localhost [127.0.0.1]) by zeta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 9894975995 for ; Fri, 28 Oct 2005 11:12:41 +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 F12DD4736B for ; Fri, 28 Oct 2005 11:12:40 +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 CEN01879 (AUTH "andrew stubbs"); Fri, 28 Oct 2005 12:09:49 +0100 (BST) Message-ID: <43620692.2000409@st.com> Date: Fri, 28 Oct 2005 11:10:00 -0000 From: Andrew STUBBS User-Agent: Mozilla Thunderbird 1.0.2 (Windows/20050317) MIME-Version: 1.0 To: GDB List Subject: Re: RFC: GDB as a loader 3/3: --eval-command option References: <4354DD31.3020809@st.com> In-Reply-To: <4354DD31.3020809@st.com> Content-Type: multipart/mixed; boundary="------------040202030701020304020804" 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/msg00180.txt.bz2 This is a multi-part message in MIME format. --------------040202030701020304020804 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-length: 239 Here is a documentation patch for the --eval-command option. I am not sure this is the right place in the manual. It is not a 'file' option as such, but nor is it a 'mode' option, and I want to put it alongside -command. Andrew Stubbs --------------040202030701020304020804 Content-Type: text/plain; name="eval-command-docs.patch" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="eval-command-docs.patch" Content-length: 965 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 11:35:18.000000000 +0100 +++ src/gdb/doc/gdb.texinfo 2005-10-28 11:59:02.000000000 +0100 @@ -932,6 +932,19 @@ 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} --------------040202030701020304020804--