]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blobdiff - gdb/testsuite/gdb.arch/amd64-word.exp
* gdb.arch/amd64-word.exp: Rename hex to hexr, the former is defined
[thirdparty/binutils-gdb.git] / gdb / testsuite / gdb.arch / amd64-word.exp
index 98116cbadae0f72d6286dace39c02e5e12009247..a02edf95098073a46b25f77083f76854a716b141 100644 (file)
@@ -74,9 +74,9 @@ gdb_test "break [gdb_get_line_number "first breakpoint here"]" \
 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 "second breakpoint here"]" \
 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)"
 }