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.
This commit is contained in:
Doug Evans 2015-09-15 13:21:28 -07:00
parent 92b3f00826
commit b326e5870e
2 changed files with 6 additions and 1 deletions

View 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.

View 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.