public inbox for gdb@sourceware.org
 help / color / mirror / Atom feed
From: Bob Rossi <bob_rossi@cox.net>
To: Smita <smita@cse.ucsc.edu>, gdb@sources.redhat.com
Subject: Re: return value of a gdb command
Date: Fri, 18 Apr 2003 12:10:00 -0000	[thread overview]
Message-ID: <20030418120954.GA8382@white> (raw)
In-Reply-To: <20030417231345.GA29425@nevyn.them.org>

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?

Bob Rossi

  reply	other threads:[~2003-04-18 12:10 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-04-14 20:56 breakpoint commands and finish Matt Thomas
2003-04-14 21:00 ` Joel Brobecker
2003-04-14 21:04   ` Joel Brobecker
2003-04-14 21:11     ` Doug Evans
2003-04-14 21:33       ` Joel Brobecker
2003-04-14 22:27         ` Doug Evans
2003-04-14 21:23     ` Matt Thomas
2003-04-17 17:47 ` Michael Snyder
2003-04-17 18:48   ` Matt Thomas
2003-04-17 20:19     ` Daniel Jacobowitz
2003-04-17 20:44       ` Doug Evans
2003-04-17 20:50         ` Daniel Jacobowitz
2003-04-17 21:19           ` Doug Evans
2003-04-17 21:44             ` Daniel Jacobowitz
2003-04-17 23:11             ` return value of a gdb command Smita
2003-04-17 23:13               ` Daniel Jacobowitz
2003-04-18 12:10                 ` Bob Rossi [this message]
2003-04-18 13:38                   ` Daniel Jacobowitz
2003-04-21 20:55                 ` Andrew Cagney

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20030418120954.GA8382@white \
    --to=bob_rossi@cox.net \
    --cc=gdb@sources.redhat.com \
    --cc=smita@cse.ucsc.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).