gdb: PR mi/20395: Fix -var-update for registers in frames 1 and up
[deliverable/binutils-gdb.git] / gdb / testsuite / gdb.mi / mi-var-create-rtti.exp
index b61c495ab41c217d4c21f516149795520dce1e9c..9ea5784bcadb16cbaab231ce625e764a483f452f 100644 (file)
@@ -49,6 +49,9 @@ mi_gdb_test "-gdb-set print object on" ".*"
 # We use a explicit cast to (void *) as that is the
 # type that caused the bug this testcase is testing for.
 mi_gdb_test "-var-create sp1 * ((void*)\$sp)" \
-           "\\^done,name=\"sp1\",numchild=\"0\",value=\"$hex\",type=\"void \\*\",has_more=\"0\"" \
+           "\\^done,name=\"sp1\",numchild=\"0\",value=\"$hex\",type=\"void \\*\",thread-id=\"$decimal\",has_more=\"0\"" \
            "-var-create sp1 * \$sp"
+mi_gdb_test "-var-create sp2 @ ((void*)\$sp)" \
+           "\\^done,name=\"sp2\",numchild=\"0\",value=\"$hex\",type=\"void \\*\",thread-id=\"$decimal\",has_more=\"0\"" \
+           "-var-create sp2 @ \$sp"
 gdb_exit
This page took 0.025503 seconds and 4 git commands to generate.