Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* gdb simulator exit status
@ 2008-01-17 12:42 M R Swami Reddy
  2008-01-17 14:32 ` Andrew STUBBS
  2008-01-17 14:40 ` Daniel Jacobowitz
  0 siblings, 2 replies; 4+ messages in thread
From: M R Swami Reddy @ 2008-01-17 12:42 UTC (permalink / raw)
  To: gdb

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


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2008-01-18  5:17 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-01-17 12:42 gdb simulator exit status M R Swami Reddy
2008-01-17 14:32 ` Andrew STUBBS
2008-01-18  5:17   ` M R Swami Reddy
2008-01-17 14:40 ` Daniel Jacobowitz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox