This is the mail archive of the gdb@sources.redhat.com 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]

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



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