]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blobdiff - gdb/testsuite/gdb.base/solib-display.exp
Stop assuming no-debug-info variables have type int
[thirdparty/binutils-gdb.git] / gdb / testsuite / gdb.base / solib-display.exp
index 1e2685315b5b832441f7fc018de1db9e38dd1610..6df9f260215a2165c426ef38f7d21065c4c5ce17 100644 (file)
@@ -94,9 +94,9 @@ foreach libsepdebug {NO IN SEP} { with_test_prefix "$libsepdebug" {
       return 0
     }
 
-    gdb_test "display a_global" "1: a_global = 41"
-    gdb_test "display b_global" "2: b_global = 42"
-    gdb_test "display c_global" "3: c_global = 43"
+    gdb_test "display (int) a_global" "1: \\(int\\) a_global = 41"
+    gdb_test "display (int) b_global" "2: \\(int\\) b_global = 42"
+    gdb_test "display (int) c_global" "3: \\(int\\) c_global = 43"
 
     if { [gdb_start_cmd] < 0 } {
        fail "can't run to main (2)"
@@ -104,9 +104,9 @@ foreach libsepdebug {NO IN SEP} { with_test_prefix "$libsepdebug" {
     }
 
     gdb_test "" [multi_line \
-                    "1: a_global = 41" \
-                    "2: b_global = 42"  \
-                    "3: c_global = 43" \
+                    "1: \\(int\\) a_global = 41" \
+                    "2: \\(int\\) b_global = 42"  \
+                    "3: \\(int\\) c_global = 43" \
                    ] "after rerun"
 
     # Now rebuild the library without b_global
@@ -132,9 +132,9 @@ foreach libsepdebug {NO IN SEP} { with_test_prefix "$libsepdebug" {
 
 
     gdb_test "" [multi_line \
-                    "1: a_global = 41" \
+                    "1: \\(int\\) a_global = 41" \
                     "warning: .*b_global.*"  \
-                    "3: c_global = 43" \
+                    "3: \\(int\\) c_global = 43" \
                    ] "after rerun (2)"
 
     # Now verify that displays which are not in the shared library