From: Andrew STUBBS <andrew.stubbs@st.com>
To: GDB List <gdb@sources.redhat.com>
Subject: Re: RFC: GDB as a loader 2/3: return child result
Date: Fri, 28 Oct 2005 11:06:00 -0000 [thread overview]
Message-ID: <436205A6.9010403@st.com> (raw)
In-Reply-To: <4354DC55.4090706@st.com>
[-- Attachment #1: Type: text/plain, Size: 77 bytes --]
Here is a documentation patch to go with the original patch.
Andrew Stubbs
[-- Attachment #2: return-result-docs.patch --]
[-- Type: text/plain, Size: 1051 bytes --]
2005-10-28 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-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}
next prev parent reply other threads:[~2005-10-28 11:06 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 [this message]
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
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=436205A6.9010403@st.com \
--to=andrew.stubbs@st.com \
--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).