Index: gdb/testsuite/gdb.base/gnu-debugdata.c |
diff --git a/gdb/testsuite/gdb.server/solib-list-lib.c b/gdb/testsuite/gdb.base/gnu-debugdata.c |
similarity index 80% |
copy from gdb/testsuite/gdb.server/solib-list-lib.c |
copy to gdb/testsuite/gdb.base/gnu-debugdata.c |
index 504a34eeb4b5f9ccc6a4d1bd9debafe040620406..282b919cb78b19d1065f3b5c8fbe2307f059b439 100644 |
--- a/gdb/testsuite/gdb.server/solib-list-lib.c |
+++ b/gdb/testsuite/gdb.base/gnu-debugdata.c |
@@ -1,6 +1,6 @@ |
/* This testcase is part of GDB, the GNU debugger. |
- Copyright 2012 Free Software Foundation, Inc. |
+ Copyright 2012-2013 Free Software Foundation, Inc. |
This program is free software; you can redistribute it and/or modify |
it under the terms of the GNU General Public License as published by |
@@ -17,12 +17,14 @@ |
#include <signal.h> |
-static int libvar = 23; |
+static int |
+debugdata_function (void) |
+{ |
+ return raise (SIGSEGV) + 1; |
+} |
int |
-libfunc (void) |
+main (void) |
{ |
- raise (SIGUSR1); |
- |
- return libvar; |
+ return debugdata_function () + 1; |
} |