Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Andrew STUBBS <andrew.stubbs@st.com>
To: M R Swami Reddy <swami@india.nsc.com>
Cc: gdb@sourceware.org
Subject: Re: gdb simulator exit status
Date: Thu, 17 Jan 2008 14:32:00 -0000	[thread overview]
Message-ID: <478F66D8.6000808@st.com> (raw)
In-Reply-To: <478F4D01.8000202@india.nsc.com>

M R Swami Reddy wrote:
> Can you please suggest the way (if any) to get the gdb simulator's exit 
> status with "echo $status" command"?

Well, it works for me (target sh-elf), but maybe I'm using a more recent 
GDB or something.

Anyway, obviously it isn't working for you, so try this:

gdb --batch-silent \
	--return-child-result \
	-ex "target sim" \
	-ex load \
	-ex run \
	a.out

Hope that helps

Andrew


  reply	other threads:[~2008-01-17 14:32 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-01-17 12:42 M R Swami Reddy
2008-01-17 14:32 ` Andrew STUBBS [this message]
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=478F66D8.6000808@st.com \
    --to=andrew.stubbs@st.com \
    --cc=gdb@sourceware.org \
    --cc=swami@india.nsc.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