From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23735 invoked by alias); 28 Oct 2005 12:58:05 -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 23725 invoked by uid 22791); 28 Oct 2005 12:58:03 -0000 Received: from romy.inter.net.il (HELO romy.inter.net.il) (192.114.186.66) by sourceware.org (qpsmtpd/0.30-dev) with ESMTP; Fri, 28 Oct 2005 12:58:03 +0000 Received: from HOME-C4E4A596F7 (IGLD-80-230-203-194.inter.net.il [80.230.203.194]) by romy.inter.net.il (MOS 3.5.8-GR) with ESMTP id CVA19710 (AUTH halo1); Fri, 28 Oct 2005 14:57:56 +0200 (IST) Date: Fri, 28 Oct 2005 12:58:00 -0000 Message-Id: From: Eli Zaretskii To: Andrew STUBBS CC: gdb@sources.redhat.com In-reply-to: <436205A6.9010403@st.com> (message from Andrew STUBBS on Fri, 28 Oct 2005 12:04:06 +0100) Subject: Re: RFC: GDB as a loader 2/3: return child result Reply-to: Eli Zaretskii References: <4354DC55.4090706@st.com> <436205A6.9010403@st.com> X-SW-Source: 2005-10/txt/msg00183.txt.bz2 > Date: Fri, 28 Oct 2005 12:04:06 +0100 > From: Andrew STUBBS > > Here is a documentation patch to go with the original patch. Thanks. My comments are below. > +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. The "error occurs" part is not clear enough, IMO. Could you please state more clearly what kinds of error could cause this ``unless'' clause to kick in? Also, if such an error does occur, what will GDB return as its exit status in that case? I think we should spell out all this information, since this option is meant to be used by people who write shell scripts that invoke GDB in batch mode. If I'd need to write such a script, I'd wish to know exactly what kinds of exit codes I will see and under what circumstances. Otherwise, this patch is fine with me.