This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
return value of a gdb command
- From: Smita <smita at cse dot ucsc dot edu>
- To: gdb at sources dot redhat dot com
- Date: Thu, 17 Apr 2003 16:11:38 -0700 (PDT)
- Subject: return value of a gdb command
Hi,
Is it possible to capture return value of a gdb command (status=error or
success)?
What I want to do is:
(gdb) <gdb-command>
(gdb) if status of <gdb-command> == SUCCESS
then
do-something
else
do-something-else
end
(gdb)
Is it posible to do this?
Thanks
Smita