From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14893 invoked by alias); 3 Nov 2005 11:57:53 -0000 Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org Received: (qmail 14875 invoked by uid 22791); 3 Nov 2005 11:57:49 -0000 Received: from lon-del-02.spheriq.net (HELO lon-del-02.spheriq.net) (195.46.50.98) by sourceware.org (qpsmtpd/0.30-dev) with ESMTP; Thu, 03 Nov 2005 11:57:49 +0000 Received: from lon-out-03.spheriq.net ([195.46.50.131]) by lon-del-02.spheriq.net with ESMTP id jA3BvhSx019430 for ; Thu, 3 Nov 2005 11:57:43 GMT Received: from lon-cus-01.spheriq.net (lon-cus-01.spheriq.net [195.46.50.37]) by lon-out-03.spheriq.net with ESMTP id jA3BvgW9024926 for ; Thu, 3 Nov 2005 11:57:43 GMT Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by lon-cus-01.spheriq.net with ESMTP id jA3BvfkF026010 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=OK); Thu, 3 Nov 2005 11:57:41 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 C3E54DA48; Thu, 3 Nov 2005 11:57:36 +0000 (GMT) Received: by zeta.dmz-eu.st.com (STMicroelectronics, from userid 60012) id 916F9472F7; Thu, 3 Nov 2005 12:00:29 +0000 (GMT) Received: from zeta.dmz-eu.st.com (localhost [127.0.0.1]) by zeta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 4EFA775994; Thu, 3 Nov 2005 12:00:29 +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 B4788472EA; Thu, 3 Nov 2005 12:00:28 +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 CFQ01156 (AUTH "andrew stubbs"); Thu, 3 Nov 2005 11:57:35 GMT Message-ID: <4369FAB4.9010000@st.com> Date: Thu, 03 Nov 2005 11:57: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 2/3: return child result References: <4354DC55.4090706@st.com> <436205A6.9010403@st.com> <43622E2A.9050600@st.com> In-Reply-To: Content-Type: multipart/mixed; boundary="------------030507030902010303070900" 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-11/txt/msg00059.txt.bz2 This is a multi-part message in MIME format. --------------030507030902010303070900 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-length: 305 Eli Zaretskii wrote: >>Ok. How about the attached? > > > The new text is fine, thanks. > >>+@value{GDBN} exits abnormally. E.g. due to an incorrect argument or an > > "E.g." should be followed by a comma. Patch with commas attached. Am I ok to submit the code and docs patches now? Thanks Andrew --------------030507030902010303070900 Content-Type: text/plain; name="return-result-docs.patch" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="return-result-docs.patch" Content-length: 1380 2005-10-03 Andrew Stubbs * gdb.texinfo (Choosing modes): Add --return-child-result. Index: src/gdb/doc/gdb.texinfo =================================================================== --- src.orig/gdb/doc/gdb.texinfo 2005-10-31 12:18:35.000000000 +0000 +++ src/gdb/doc/gdb.texinfo 2005-10-31 13:04:56.000000000 +0000 @@ -1007,6 +1007,27 @@ messages, for example. 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), with the following exceptions: + +@itemize @bullet +@item +@value{GDBN} exits abnormally. E.g., due to an incorrect argument or an +internal error. In this case the exit code is the same as it would have been +without @samp{-return-child-result}. +@item +The user quits with an explicit value. E.g., @samp{quit 1}. +@item +The child process never runs, or is not allowed to terminate, in which case +the exit code will be -1. +@end itemize + +This option 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} --------------030507030902010303070900--