From b326e5870e54f52d52c32388f7f6e07454e2f2c2 Mon Sep 17 00:00:00 2001 From: Doug Evans Date: Tue, 15 Sep 2015 13:21:28 -0700 Subject: [PATCH] Handle clang naming of function static local variable. 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 | 5 +++++ gdb/testsuite/gdb.base/callfuncs.exp | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index 2a1f2bf6794..43440c2bbf1 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2015-09-15 Doug Evans + + * gdb.base/callfuncs.exp (do_function_calls): Handle clang naming + of function static local variable. + 2015-09-15 Philippe Waroquiers * gdb.threads/tls-so_extern.exp: New test file. diff --git a/gdb/testsuite/gdb.base/callfuncs.exp b/gdb/testsuite/gdb.base/callfuncs.exp index 263ec5585be..fda3cb79232 100644 --- a/gdb/testsuite/gdb.base/callfuncs.exp +++ b/gdb/testsuite/gdb.base/callfuncs.exp @@ -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 .. )? \"foo\"" \ + gdb_test "p t_structs_a(struct_val1)" "= (.unsigned char .. )?<.*buf.*> \"foo\"" \ "call inferior func with struct - returns char *" # Restore default value. -- 2.30.2