This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Different output from -gdb-show than show
- From: Marc Khouzam <marc dot khouzam at ericsson dot com>
- To: "'gdb at sourceware dot org'" <gdb at sourceware dot org>
- Date: Tue, 31 Aug 2010 11:02:39 -0400
- Subject: Different output from -gdb-show than show
Hi,
while looking for a way know if a target supports reverse execution
I noticed this:
> gdb.7.2 -i mi testing/a.out
(gdb) start
(gdb) -gdb-set exec-direction reverse
^done
(gdb) -gdb-show exec-direction
^done,value="reverse"
(gdb) show exec-direction
&"show exec-direction\n"
~"Forward.\n"
^done
For some reason, -gdb-show is giving a different result than CLI show.
For my "does target support reverse" case, I will be forced to use 'show'.
Bug?
Thanks
Marc