aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite
diff options
context:
space:
mode:
authorDoug Evans <dje@google.com>2015-09-15 13:21:28 -0700
committerDoug Evans <dje@google.com>2015-09-15 13:21:28 -0700
commitb326e5870e54f52d52c32388f7f6e07454e2f2c2 (patch)
treeac6057d733108b0a95d5722100612fd44c12e791 /gdb/testsuite
parent92b3f0082674ecdb4dad89d722acd069aef0dafa (diff)
downloadgdb-b326e5870e54f52d52c32388f7f6e07454e2f2c2.zip
gdb-b326e5870e54f52d52c32388f7f6e07454e2f2c2.tar.gz
gdb-b326e5870e54f52d52c32388f7f6e07454e2f2c2.tar.bz2
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.
Diffstat (limited to 'gdb/testsuite')
-rw-r--r--gdb/testsuite/ChangeLog5
-rw-r--r--gdb/testsuite/gdb.base/callfuncs.exp2
2 files changed, 6 insertions, 1 deletions
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog
index 2a1f2bf..43440c2 100644
--- a/gdb/testsuite/ChangeLog
+++ b/gdb/testsuite/ChangeLog
@@ -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.
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.