From: "M R Swami Reddy" <swami@india.nsc.com>
To: gdb@sourceware.org
Subject: gdb simulator exit status
Date: Thu, 17 Jan 2008 12:42:00 -0000 [thread overview]
Message-ID: <478F4D01.8000202@india.nsc.com> (raw)
Hi,
I have C file as:
==
main () {
return 1;
}
===
When I compile and run it, the status value is '1'
> a.out
> echo $status
> 1
When I execute the same "a.out" on gdb simulator, the status shows as "0" (ie
gdb's exit status) and gdb shows "Program exited with code 01".
Can you please suggest the way (if any) to get the gdb simulator's exit status
with "echo $status" command"?
Thank in advance.
Thanks,
Swami
next reply other threads:[~2008-01-17 12:42 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-01-17 12:42 M R Swami Reddy [this message]
2008-01-17 14:32 ` Andrew STUBBS
2008-01-18 5:17 ` M R Swami Reddy
2008-01-17 14:40 ` 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=478F4D01.8000202@india.nsc.com \
--to=swami@india.nsc.com \
--cc=gdb@sourceware.org \
/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