Index: gdb/testsuite/gdb.mi/mi-var-display.exp |
diff --git a/gdb/testsuite/gdb.mi/mi-var-display.exp b/gdb/testsuite/gdb.mi/mi-var-display.exp |
index c508681f0f79a9e2e4977f9429e41190f309d46b..5cb5f2600db5348b48ed8ca2da62f945d10386ae 100644 |
--- a/gdb/testsuite/gdb.mi/mi-var-display.exp |
+++ b/gdb/testsuite/gdb.mi/mi-var-display.exp |
@@ -27,10 +27,9 @@ if [mi_gdb_start] { |
continue |
} |
-set testfile "var-cmd" |
-set srcfile ${testfile}.c |
-set binfile ${objdir}/${subdir}/mi-var-display |
-if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug additional_flags=-DFAKEARGV}] != "" } { |
+standard_testfile var-cmd.c |
+ |
+if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug}] != "" } { |
untested mi-var-display.exp |
return -1 |
} |
@@ -286,7 +285,7 @@ mi_gdb_test "-var-set-format weird.func_ptr_struct hexadecimal" \ |
"set format variable weird.func_ptr_struct" |
mi_gdb_test "-var-set-format weird.func_ptr_ptr natural" \ |
- "\\^done,format=\"natural\",value=\"0\"" \ |
+ "\\^done,format=\"natural\",value=\"0x0\"" \ |
"set format variable weird.func_ptr_ptr" |
mi_gdb_test "-var-set-format weird.u1 natural" \ |
@@ -614,9 +613,13 @@ mi_gdb_test "-var-create a1 * a" \ |
"\\^done,name=\"a1\",numchild=\"0\",value=\".*\",type=\"char\".*" \ |
"create local variable a1" |
-mi_gdb_test "-var-create a2 $fp a" \ |
+if { [info exists fp] } { |
+ mi_gdb_test "-var-create a2 $fp a" \ |
"\\^done,name=\"a2\",numchild=\"0\",value=\".*\",type=\"int\".*" \ |
"create variable a2 in different scope" |
+} else { |
+ untested "create variable a2 in different scope" |
+} |
#gdbtk_test c_variable-7.81 {create variables in different scopes} { |
# set a1 [gdb_variable create -expr a] |