This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: Testing of reverse debug commands
- From: Pedro Alves <pedro at codesourcery dot com>
- To: Hui Zhu <teawater at gmail dot com>
- Cc: Marc Khouzam <marc dot khouzam at ericsson dot com>, Michael Snyder <msnyder at vmware dot com>, Jan Kratochvil <jan dot kratochvil at redhat dot com>, Joel Brobecker <brobecker at adacore dot com>, "gdb-patches ml" <gdb-patches at sourceware dot org>
- Date: Mon, 20 Jul 2009 14:16:25 +0100
- Subject: Re: Testing of reverse debug commands
- References: <4A5930EE.3040201@vmware.com> <6D19CA8D71C89C43A057926FE0D4ADAA07B71A3E@ecamlmw720.eamcs.ericsson.se> <daef60380907122031la6c31c6oe752ae17db842933@mail.gmail.com>
On Monday 13 July 2009 04:31:37, Hui Zhu wrote:
> On Mon, Jul 13, 2009 at 03:25, Marc Khouzam<marc.khouzam@ericsson.com> wrote:
> >> Pedro Alves wrote:
> >> >
> >> > (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.
> >
> > That would be more consistent for a frontend. ?The frontend
> > can then decide if this should be reported as an error or simply
> > accepted. ?But that is not such a big deal anymore, now that
> > you pointed out 'record' itself does report an error.
> >
>
> I think the record's query and something is make a lot of troubles.
> I make a patch for it. Please help me with it.
I got confused, since this isn't answering the question I asked.
This particular issue will be resolved when the query/nquery/yquery/MI
discussion reaches a conclusion, yes? Or is this an independent change?
Do note that we have other CLI commands that query and default to
a "destructive" 'yes', like "run -> attach (kill?)", for example.
Maybe you should post this in its own new thread.
I think it would be nice if we crafted a GDB HIG. Do we have
something of the sorts already?
--
Pedro Alves