From: "Marc Khouzam" <marc.khouzam@ericsson.com>
To: "Michael Snyder" <msnyder@vmware.com>,
"Jan Kratochvil" <jan.kratochvil@redhat.com>
Cc: "Joel Brobecker" <brobecker@adacore.com>, <gdb@sourceware.org>,
"Hui Zhu" <teawater@gmail.com>
Subject: RE: Testing of reverse debug commands
Date: Sun, 12 Jul 2009 18:50:00 -0000 [thread overview]
Message-ID: <6D19CA8D71C89C43A057926FE0D4ADAA07B71A36@ecamlmw720.eamcs.ericsson.se> (raw)
In-Reply-To: <4A5A19FC.9050206@vmware.com>
> -----Original Message-----
> From: gdb-owner@sourceware.org
> [mailto:gdb-owner@sourceware.org] On Behalf Of Michael Snyder
> Sent: July-12-09 1:15 PM
> To: Jan Kratochvil
> Cc: Joel Brobecker; gdb@sourceware.org; Hui Zhu
> Subject: Re: Testing of reverse debug commands
>
> Jan Kratochvil wrote:
> > On Sun, 12 Jul 2009 10:01:45 +0200, Joel Brobecker wrote:
> >>> gdb_test "record" "" "Turn on process record"
> >>> # FIXME: command ought to acknowledge, so we can test
> if it succeeded.
> >> This is just a shot in the dark since I really don't have much time
> >> to double-check this, but does gdb_test_multiple allow you
> to verify
> >> that no output was generated? For some reason, I thought it did.
> >
> > This one works but not sure if it cannot have some problems:
> >
> > set cmd "set verbose 0"
> > gdb_test $cmd "[string_to_regexp $cmd]"
>
> Hmm, ok, three people so far have responded with
> work-arounds (thanks).
>
> Does that mean y'all lean toward NOT making the
> commands generate some output of their own?
>
> Now would be the time to decide, before the first official release...
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.
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.
(gdb)
record stop
&"record stop\n"
~"Process record is not started.\n"
^done
(gdb)
-interpreter-exec console record stop
^done
(gdb)
So, I think some improvement would be nice for frontends.
There is also a need to handle the default answers of queries
better for a frontend. They are almost entirely used by PRecord.
I've been meaning to write a patch about that. I'll try to
get to it soon unless someone else gets to it first :-)
Marc
next prev parent reply other threads:[~2009-07-12 18:50 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 [this message]
2009-07-12 19:07 ` Pedro Alves
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=6D19CA8D71C89C43A057926FE0D4ADAA07B71A36@ecamlmw720.eamcs.ericsson.se \
--to=marc.khouzam@ericsson.com \
--cc=brobecker@adacore.com \
--cc=gdb@sourceware.org \
--cc=jan.kratochvil@redhat.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