public inbox for gdb@sourceware.org
 help / color / mirror / Atom feed
From: Andrew Cagney <ac131313@redhat.com>
To: Daniel Jacobowitz <drow@mvista.com>
Cc: Smita <smita@cse.ucsc.edu>, gdb@sources.redhat.com
Subject: Re: return value of a gdb command
Date: Mon, 21 Apr 2003 20:55:00 -0000	[thread overview]
Message-ID: <3EA45AB6.1020104@redhat.com> (raw)
In-Reply-To: <20030417231345.GA29425@nevyn.them.org>

> 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.

There is a try/catch patch lurking though (which makes more sense). 
Someone should dust it off.

Andrew


      parent reply	other threads:[~2003-04-21 20:55 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
2003-04-18 13:38                   ` Daniel Jacobowitz
2003-04-21 20:55                 ` Andrew Cagney [this message]

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=3EA45AB6.1020104@redhat.com \
    --to=ac131313@redhat.com \
    --cc=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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).