gdb simulator exit status
M R Swami Reddy
MR.Swami.Reddy@nsc.com
Fri Jan 18 05:17:00 GMT 2008
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
More information about the Gdb
mailing list