* [OB PATCH] Handle clang naming of function static local variable.
@ 2015-09-15 20:43 Doug Evans
0 siblings, 0 replies; only message in thread
From: Doug Evans @ 2015-09-15 20:43 UTC (permalink / raw)
To: gdb-patches
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.
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2015-09-15 20:43 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-09-15 20:43 [OB PATCH] Handle clang naming of function static local variable Doug Evans
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).