This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: Testing of reverse debug commands
- From: Jan Kratochvil <jan dot kratochvil at redhat dot com>
- To: Joel Brobecker <brobecker at adacore dot com>
- Cc: Michael Snyder <msnyder at vmware dot com>, gdb at sourceware dot org, Hui Zhu <teawater at gmail dot com>
- Date: Sun, 12 Jul 2009 16:28:34 +0200
- Subject: Re: Testing of reverse debug commands
- References: <4A5930EE.3040201@vmware.com> <20090712080145.GB10756@adacore.com>
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]"
Regards,
Jan