This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[OB PATCH] Handle clang naming of function static local variable.
- From: Doug Evans <dje at google dot com>
- To: gdb-patches at sourceware dot org
- Date: Tue, 15 Sep 2015 20:43:23 +0000
- Subject: [OB PATCH] Handle clang naming of function static local variable.
- Authentication-results: sourceware.org; auth=none
Hi.
This test fails on clang because it names the local variable
t_structs_a.buf.
Committed as obvious.
2015-09-15 Doug Evans <dje@google.com>
* gdb.base/callfuncs.exp (do_function_calls): Handle clang naming
of function static local variable.
diff --git a/gdb/testsuite/gdb.base/callfuncs.exp
b/gdb/testsuite/gdb.base/callfuncs.exp
index 263ec55..fda3cb7 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 .. )?<buf.*>
\"foo\"" \
+ gdb_test "p t_structs_a(struct_val1)" "= (.unsigned char ..
)?<.*buf.*> \"foo\"" \
"call inferior func with struct - returns char *"
# Restore default value.