From: Andrew STUBBS <andrew.stubbs@st.com>
To: Eli Zaretskii <eliz@gnu.org>
Cc: gdb@sources.redhat.com
Subject: Re: RFC: GDB as a loader 2/3: return child result
Date: Thu, 03 Nov 2005 11:57:00 -0000 [thread overview]
Message-ID: <4369FAB4.9010000@st.com> (raw)
In-Reply-To: <u1x25efvg.fsf@gnu.org>
[-- Attachment #1: Type: text/plain, Size: 305 bytes --]
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
[-- Attachment #2: return-result-docs.patch --]
[-- Type: text/plain, Size: 1380 bytes --]
2005-10-03 Andrew Stubbs <andrew.stubbs@st.com>
* 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}
next prev parent reply other threads:[~2005-11-03 11:57 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-10-18 11:30 Andrew STUBBS
2005-10-28 11:06 ` Andrew STUBBS
2005-10-28 12:58 ` Eli Zaretskii
2005-10-28 14:01 ` Andrew STUBBS
2005-10-28 17:00 ` Eli Zaretskii
2005-11-03 11:57 ` Andrew STUBBS [this message]
2005-11-04 10:46 ` Eli Zaretskii
2005-11-04 11:52 ` Andrew STUBBS
2005-11-05 2:46 ` Daniel Jacobowitz
2005-11-07 12:20 ` Andrew STUBBS
2005-11-07 14:02 ` Daniel Jacobowitz
2005-11-07 14:40 ` Andrew STUBBS
2005-11-07 14:42 ` Daniel Jacobowitz
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4369FAB4.9010000@st.com \
--to=andrew.stubbs@st.com \
--cc=eliz@gnu.org \
--cc=gdb@sources.redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).