Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Pedro Alves <pedro@codesourcery.com>
To: gdb@sourceware.org
Cc: "Marc Khouzam" <marc.khouzam@ericsson.com>,
	 "Michael Snyder" <msnyder@vmware.com>,
	 "Jan Kratochvil" <jan.kratochvil@redhat.com>,
	 "Joel Brobecker" <brobecker@adacore.com>,
	 "Hui Zhu" <teawater@gmail.com>
Subject: Re: Testing of reverse debug commands
Date: Sun, 12 Jul 2009 19:07:00 -0000	[thread overview]
Message-ID: <200907122007.38248.pedro@codesourcery.com> (raw)
In-Reply-To: <6D19CA8D71C89C43A057926FE0D4ADAA07B71A36@ecamlmw720.eamcs.ericsson.se>

On Sunday 12 July 2009 19:49:58, Marc Khouzam wrote:

> From a frontend perspective, the current 'record' command is not very
> good.

> First, there is no MI equivalent, although that is not a big deal.
> But since it does not report error, the frontend must always assumes
> that
> the command worked.

Are you sure that is the case with "record"?  I see `error' calls
in record.c:record_open.  If there are some missing, let's add them.

> Below you can see that using 'record stop' directly will give a ^done
> instead of an ^error when it fails (although there is an error message
> but we don't parse those in Eclipse).  Also, using -interpreter-exec
> is even worse as even the error message is gone.

Note that "record stop" is really a different command, although
it shares a common "record" prefix.

> 
> (gdb) 
> record stop
> &"record stop\n"
> ~"Process record is not started.\n"
> ^done
> (gdb) 

> So, I think some improvement would be nice for frontends.

So, is this really an error?  Hui seems to have thought
it wasn't.  Hui?  If it is, then it's just a matter of
changing the corresponding printf_unfiltered calls in
record.c to `error' calls (look for the "Process record is..." string).
Then MI will get an ^error,msg="foo", instead of a ~"foo" + ^done.

-- 
Pedro Alves


  reply	other threads:[~2009-07-12 19:07 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-07-12  0:44 Michael Snyder
2009-07-12  8:02 ` Joel Brobecker
2009-07-12 14:20   ` Pedro Alves
2009-07-12 14:29   ` Jan Kratochvil
2009-07-12 17:19     ` Michael Snyder
2009-07-12 18:19       ` Joel Brobecker
2009-07-12 18:25       ` Pedro Alves
2009-07-12 18:50       ` Marc Khouzam
2009-07-12 19:07         ` Pedro Alves [this message]
2009-07-12 19:26           ` Marc Khouzam

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=200907122007.38248.pedro@codesourcery.com \
    --to=pedro@codesourcery.com \
    --cc=brobecker@adacore.com \
    --cc=gdb@sourceware.org \
    --cc=jan.kratochvil@redhat.com \
    --cc=marc.khouzam@ericsson.com \
    --cc=msnyder@vmware.com \
    --cc=teawater@gmail.com \
    /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