This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: gdb simulator exit status
- From: "M R Swami Reddy" <MR dot Swami dot Reddy at nsc dot com>
- To: "Andrew STUBBS" <andrew dot stubbs at st dot com>
- Cc: gdb at sourceware dot org
- Date: Fri, 18 Jan 2008 10:47:04 +0530
- Subject: Re: gdb simulator exit status
- References: <478F4D01.8000202@india.nsc.com> <478F66D8.6000808@st.com>
Andrew STUBBS wrote:
> 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
Thank you very much. The "--return-child-result" option works for me too.
Thanks,
Swami