This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
[committed] Fix asm-source.exp globalvar
- From: Daniel Jacobowitz <drow at mvista dot com>
- To: Richard Henderson <rth at twiddle dot net>
- Cc: gdb-patches at sources dot redhat dot com
- Date: Sun, 1 Jun 2003 23:10:27 -0400
- Subject: [committed] Fix asm-source.exp globalvar
- References: <20030601071824.GA29531@twiddle.net>
On Sun, Jun 01, 2003 at 12:18:24AM -0700, Richard Henderson wrote:
> Committed as obvious, since it tests as working. ;-)
>
> We still fail the "x/i globalvar" test, but afaict the test
> itself is broken. Shouldn't that be "&globalvar"?
Oh right, I was away from my CVS tree when I noticed that so I never
checked in the fix. I've checked this in.
--
Daniel Jacobowitz
MontaVista Software Debian GNU/Linux Developer
2003-06-01 Daniel Jacobowitz <drow@mvista.com>
* gdb.asm/asm-source.exp: Dissassemble from &globalvar instead
of globalvar.
Index: testsuite//gdb.asm/asm-source.exp
===================================================================
RCS file: /cvs/src/src/gdb/testsuite/gdb.asm/asm-source.exp,v
retrieving revision 1.37
diff -u -p -r1.37 asm-source.exp
--- testsuite//gdb.asm/asm-source.exp 1 Jun 2003 11:37:34 -0000 1.37
+++ testsuite//gdb.asm/asm-source.exp 2 Jun 2003 03:07:51 -0000
@@ -336,7 +336,7 @@ proc test_dis { command var } {
# See if we can look at a global variable, three ways
gdb_test "print globalvar" ".* = 11" "look at global variable"
-test_dis "x/i globalvar" "globalvar"
+test_dis "x/i &globalvar" "globalvar"
test_dis "disassem &globalvar &globalvar+1" "globalvar"
# See if we can look at a static variable, three ways