Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Daniel Jacobowitz <drow@mvista.com>
To: Smita <smita@cse.ucsc.edu>
Cc: gdb@sources.redhat.com
Subject: Re: return value of a gdb command
Date: Thu, 17 Apr 2003 23:13:00 -0000	[thread overview]
Message-ID: <20030417231345.GA29425@nevyn.them.org> (raw)
In-Reply-To: <Pine.GSO.4.44.0304171608210.7756-100000@sundance.cse.ucsc.edu>

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


  reply	other threads:[~2003-04-17 23:13 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 [this message]
2003-04-18 12:10                 ` Bob Rossi
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=20030417231345.GA29425@nevyn.them.org \
    --to=drow@mvista.com \
    --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