Handle clang naming of function static local variable.
authorDoug Evans <dje@google.com>
Tue, 15 Sep 2015 20:21:28 +0000 (13:21 -0700)
committerDoug Evans <dje@google.com>
Tue, 15 Sep 2015 20:21:28 +0000 (13:21 -0700)
clang names the local variable t_structs_a.buf.

gdb/testsuite/ChangeLog:

* gdb.base/callfuncs.exp (do_function_calls): Handle clang naming
of function static local variable.

gdb/testsuite/ChangeLog
gdb/testsuite/gdb.base/callfuncs.exp

index 2a1f2bf6794a38c5009ba7748603440a54f965ac..43440c2bbf140e4cbd4d3cce390484ef30f55f50 100644 (file)
@@ -1,3 +1,8 @@
+2015-09-15  Doug Evans  <dje@google.com>
+
+       * gdb.base/callfuncs.exp (do_function_calls): Handle clang naming
+       of function static local variable.
+
 2015-09-15  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
 
        * gdb.threads/tls-so_extern.exp: New test file.
index 263ec5585be790db70e244a90f360cb20875acac..fda3cb79232dfb95c4bfd20e91f89e533a8280df 100644 (file)
@@ -222,7 +222,7 @@ proc do_function_calls {} {
            "call inferior func with struct - returns long double _Complex"
     }
 
-    gdb_test "p t_structs_a(struct_val1)" "= (.unsigned char .. )?<buf.*> \"foo\"" \
+    gdb_test "p t_structs_a(struct_val1)" "= (.unsigned char .. )?<.*buf.*> \"foo\"" \
        "call inferior func with struct - returns char *"
 
     # Restore default value.