This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[committed] Fix asm-source.exp globalvar


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]