aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.python
diff options
context:
space:
mode:
authorDavid Blaikie <dblaikie@gmail.com>2014-04-10 23:45:28 -0700
committerDavid Blaikie <dblaikie@gmail.com>2014-04-24 22:33:46 -0700
commit2abc3f8d59e0130e5340a5489b53556f12c9d0ce (patch)
treeebf0a63d7b75cc28f95730b831108de8f63e28ff /gdb/testsuite/gdb.python
parentbfd39632142cba581a430e41ed38c5153d1fc07a (diff)
downloadgdb-2abc3f8d59e0130e5340a5489b53556f12c9d0ce.zip
gdb-2abc3f8d59e0130e5340a5489b53556f12c9d0ce.tar.gz
gdb-2abc3f8d59e0130e5340a5489b53556f12c9d0ce.tar.bz2
Ensure unreferenced static symbols aren't omitted by clang (either marking them __attribute__((used)) or making them non-static)
gdb/testsuite/ * gdb.base/catch-syscall.c: Make unreferenced statics non-static to ensure clang would not discard them. * gdb.base/gdbvars.c: Ditto. * gdb.base/memattr.c: Ditto. * gdb.base/whatis.c: Ditto. * gdb.python/py-prettyprint.c: Ditto. * gdb.trace/actions.c: Ditto. * gdb.cp/ptype-cv-cp.cc: Mark unused global const int as used to ensure clang would not discard it.
Diffstat (limited to 'gdb/testsuite/gdb.python')
-rw-r--r--gdb/testsuite/gdb.python/py-prettyprint.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/testsuite/gdb.python/py-prettyprint.c b/gdb/testsuite/gdb.python/py-prettyprint.c
index 0fd05f5..817bf33 100644
--- a/gdb/testsuite/gdb.python/py-prettyprint.c
+++ b/gdb/testsuite/gdb.python/py-prettyprint.c
@@ -230,7 +230,7 @@ struct nullstr
struct string_repr string_1 = { { "one" } };
struct string_repr string_2 = { { "two" } };
-static int
+int
eval_func (int p1, int p2, int p3, int p4, int p5, int p6, int p7, int p8)
{
return p1;