This is the mail archive of the gdb@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: gdb simulator exit status



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





Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]