public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
* [commit] fix hex clobberage in amd64-{,d}word.exp
@ 2010-03-30 22:28 Doug Evans
  0 siblings, 0 replies; only message in thread
From: Doug Evans @ 2010-03-30 22:28 UTC (permalink / raw)
  To: gdb-patches

Hi.

I checked this in.
$hex contains a regexp for hex numbers.

2010-03-30  Doug Evans  <dje@google.com>

	* gdb.arch/amd64-word.exp: Rename hex to hexr, the former is defined
	by dejagnu.
	* gdb.arch/amd64-dword.exp: Ditto.

Index: gdb.arch/amd64-dword.exp
===================================================================
RCS file: /cvs/src/src/gdb/testsuite/gdb.arch/amd64-dword.exp,v
retrieving revision 1.1
diff -u -p -r1.1 amd64-dword.exp
--- gdb.arch/amd64-dword.exp	2 Mar 2010 13:14:36 -0000	1.1
+++ gdb.arch/amd64-dword.exp	30 Mar 2010 22:23:57 -0000
@@ -74,9 +74,9 @@ gdb_test "break [gdb_get_line_number "fi
 gdb_continue_to_breakpoint "continue to first breakpoint in main"
 
 for { set r 1 } { $r <= 6  } { incr r } {
-    set hex [format %x $r]
+    set hexr [format %x $r]
     gdb_test "print/x \$$dword_regs($r)" \
-	".. = 0x${hex}4${hex}3${hex}2${hex}1" \
+	".. = 0x${hexr}4${hexr}3${hexr}2${hexr}1" \
         "check contents of %$dword_regs($r)"
 }
 
@@ -86,9 +86,9 @@ gdb_test "break [gdb_get_line_number "se
 gdb_continue_to_breakpoint "continue to second breakpoint in main"
 
 for { set r 7 } { $r <= $nr_regs  } { incr r } {
-    set hex [format %x $r]
+    set hexr [format %x $r]
     gdb_test "print/x \$$dword_regs($r)" \
-	".. = 0x${hex}4${hex}3${hex}2${hex}1" \
+	".. = 0x${hexr}4${hexr}3${hexr}2${hexr}1" \
         "check contents of %$dword_regs($r)"
 }
 
Index: gdb.arch/amd64-word.exp
===================================================================
RCS file: /cvs/src/src/gdb/testsuite/gdb.arch/amd64-word.exp,v
retrieving revision 1.1
diff -u -p -r1.1 amd64-word.exp
--- gdb.arch/amd64-word.exp	2 Mar 2010 13:14:36 -0000	1.1
+++ gdb.arch/amd64-word.exp	30 Mar 2010 22:23:57 -0000
@@ -74,9 +74,9 @@ gdb_test "break [gdb_get_line_number "fi
 gdb_continue_to_breakpoint "continue to first breakpoint in main"
 
 for { set r 1 } { $r <= 6  } { incr r } {
-    set hex [format %x $r]
+    set hexr [format %x $r]
     gdb_test "print/x \$$word_regs($r)" \
-        ".. = 0x${hex}2${hex}1" \
+        ".. = 0x${hexr}2${hexr}1" \
         "check contents of %$word_regs($r)"
 }
 
@@ -86,9 +86,9 @@ gdb_test "break [gdb_get_line_number "se
 gdb_continue_to_breakpoint "continue to second breakpoint in main"
 
 for { set r 7 } { $r <= $nr_regs  } { incr r } {
-    set hex [format %x $r]
+    set hexr [format %x $r]
     gdb_test "print/x \$$word_regs($r)" \
-        ".. = 0x${hex}2${hex}1" \
+        ".. = 0x${hexr}2${hexr}1" \
         "check contents of %$word_regs($r)"
 }
 

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2010-03-30 22:28 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-03-30 22:28 [commit] fix hex clobberage in amd64-{,d}word.exp Doug Evans

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).