From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26450 invoked by alias); 28 Oct 2005 11:06:44 -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 26442 invoked by uid 22791); 28 Oct 2005 11:06:42 -0000 Received: from fra-del-03.spheriq.net (HELO fra-del-03.spheriq.net) (195.46.51.99) by sourceware.org (qpsmtpd/0.30-dev) with ESMTP; Fri, 28 Oct 2005 11:06:42 +0000 Received: from fra-out-01.spheriq.net (fra-out-01.spheriq.net [195.46.51.129]) by fra-del-03.spheriq.net with ESMTP id j9SB6WZ6023125 for ; Fri, 28 Oct 2005 11:06:33 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 j9SB6Qtm029745 for ; Fri, 28 Oct 2005 11:06:26 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 j9SB6BM2013500 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=OK) for ; Fri, 28 Oct 2005 11:06:15 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 3D089DA56 for ; Fri, 28 Oct 2005 11:05:57 +0000 (GMT) Received: by zeta.dmz-eu.st.com (STMicroelectronics, from userid 60012) id 3372747374; Fri, 28 Oct 2005 11:08:47 +0000 (GMT) Received: from zeta.dmz-eu.st.com (localhost [127.0.0.1]) by zeta.dmz-eu.st.com (STMicroelectronics) with ESMTP id E940775995 for ; Fri, 28 Oct 2005 11:08:46 +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 179AC47379 for ; Fri, 28 Oct 2005 11:08:45 +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 CEN01858 (AUTH "andrew stubbs"); Fri, 28 Oct 2005 12:05:53 +0100 (BST) Message-ID: <436205A6.9010403@st.com> Date: Fri, 28 Oct 2005 11:06: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 2/3: return child result References: <4354DC55.4090706@st.com> In-Reply-To: <4354DC55.4090706@st.com> Content-Type: multipart/mixed; boundary="------------060106080303090506030509" 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/msg00179.txt.bz2 This is a multi-part message in MIME format. --------------060106080303090506030509 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-length: 77 Here is a documentation patch to go with the original patch. Andrew Stubbs --------------060106080303090506030509 Content-Type: text/plain; name="return-result-docs.patch" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="return-result-docs.patch" Content-length: 1051 2005-10-28 Andrew Stubbs * gdb.texinfo (Choosing modes): Add --return-child-result. Index: src/gdb/doc/gdb.texinfo =================================================================== --- src.orig/gdb/doc/gdb.texinfo 2005-10-28 10:37:07.000000000 +0100 +++ src/gdb/doc/gdb.texinfo 2005-10-28 11:35:18.000000000 +0100 @@ -1006,6 +1006,16 @@ This is particularly useful when using t Note that targets that give their output via @value{GDBN}, as opposed to writing directly to @code{stdout}, will also be made silent. +@item -return-child-result +@cindex @code{--return-child-result} +The return code from @value{GDBN} will be the return code from the child +process (the process being debugged), unless an error occurs or the user +quits with an explicit value, such as @samp{quit 1}, for example. + +This is useful in conjunction with @samp{-batch} or @samp{-batch-silent}, +when @value{GDBN} is being used as a remote program loader or simulator +interface. + @item -nowindows @itemx -nw @cindex @code{--nowindows} --------------060106080303090506030509--