This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: return value of a gdb command
On Fri, Apr 18, 2003 at 08:09:55AM -0400, Bob Rossi wrote:
> On Thu, Apr 17, 2003 at 07:13:45PM -0400, Daniel Jacobowitz wrote:
> > On Thu, Apr 17, 2003 at 04:11:38PM -0700, Smita wrote:
> > > 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?
> >
> > Not right now, no.
> >
> > --
> > Daniel Jacobowitz
> > MontaVista Software Debian GNU/Linux Developer
>
> That was something I thought would be useful also. Would it be a
> difficult patch?
Yes, probably - we don't really have a concept of "status".
--
Daniel Jacobowitz
MontaVista Software Debian GNU/Linux Developer