* gdb.mi/gdb2549.exp (register_tests): Expect any decimal for
authorLuis Machado <luisgpm@br.ibm.com>
Sat, 6 Jul 2013 02:32:31 +0000 (02:32 +0000)
committerLuis Machado <luisgpm@br.ibm.com>
Sat, 6 Jul 2013 02:32:31 +0000 (02:32 +0000)
the register number instead of expecting only 0.

gdb/testsuite/ChangeLog
gdb/testsuite/gdb.mi/gdb2549.exp

index a765a327f1c1c565e87ee5c6b10af69b4eac314e..9e0658d1e8d64582496df98d1cc253485cf06808 100644 (file)
@@ -1,3 +1,8 @@
+2013-07-05  Luis Machado  <lgustavo@codesourcery.com>
+
+       * gdb.mi/gdb2549.exp (register_tests): Expect any decimal for
+       the register number instead of expecting only 0.
+
 2013-07-05  Will Newton  <will.newton@linaro.org>
 
        * gdb.base/gnu-ifunc-lib.c: Use %function instead of @function
index 5c1fede6f9cd165597a34734bfd1177ea41ad9bd..597d098bdd4a73b725d0558be30954569187b109 100644 (file)
@@ -56,23 +56,23 @@ proc register_tests { } {
     set float "\\-?((\[0-9\]+(\\.\[0-9\]+)?(e\[-+\]\[0-9\]+)?)|(nan\\($hex\\)))"
 
     mi_gdb_test "222-data-list-register-values x" \
-           "222\\^done,register-values=\\\[\{number=\"0\",value=\"$hex\"\}.*\\\]" \
+           "222\\^done,register-values=\\\[\{number=\"$decimal\",value=\"$hex\"\}.*\\\]" \
            "register values x"
 
     mi_gdb_test "333-data-list-register-values f" \
-           "333\\^done,register-values=\\\[\{number=\"0\",value=\"$float\"\}.*\\\]" \
+           "333\\^done,register-values=\\\[\{number=\"$decimal\",value=\"$float\"\}.*\\\]" \
            "register values f"
 
     mi_gdb_test "444-data-list-register-values d" \
-           "444\\^done,register-values=\\\[\{number=\"0\",value=\"-?$decimal\"\}.*\\\]" \
+           "444\\^done,register-values=\\\[\{number=\"$decimal\",value=\"-?$decimal\"\}.*\\\]" \
            "register values d"
 
     mi_gdb_test "555-data-list-register-values o" \
-           "555\\^done,register-values=\\\[\{number=\"0\",value=\"$octal\"\}.*\\\]" \
+           "555\\^done,register-values=\\\[\{number=\"$decimal\",value=\"$octal\"\}.*\\\]" \
            "register values o"
 
     mi_gdb_test "666-data-list-register-values t" \
-           "666\\^done,register-values=\\\[\{number=\"0\",value=\"$binary\"\}.*\\\]" \
+           "666\\^done,register-values=\\\[\{number=\"$decimal\",value=\"$binary\"\}.*\\\]" \
            "register values t"
 }