aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite
diff options
context:
space:
mode:
authorJose E. Marchesi <jose.marchesi@oracle.com>2015-11-20 10:48:56 +0100
committerJose E. Marchesi <jose.marchesi@oracle.com>2015-11-20 10:48:56 +0100
commit9c88ed8f116dc5f9471280c73f9ab08c81a86f2d (patch)
tree5be6a7a2667adfb7fb6cd1fe2ad9756f817476a9 /gdb/testsuite
parent96161e2527c6fdc5c507fa1c0b8e7b8e7a08a03e (diff)
downloadgdb-9c88ed8f116dc5f9471280c73f9ab08c81a86f2d.zip
gdb-9c88ed8f116dc5f9471280c73f9ab08c81a86f2d.tar.gz
gdb-9c88ed8f116dc5f9471280c73f9ab08c81a86f2d.tar.bz2
sparc: fix build of gdb/testsuite/gdb.arch/sparc-sysstep.c
This patch adds a missing include that makes the test program to not be built (--Wimplicit-function-declaration). gdb/testsuite/ChangeLog: 2015-11-20 Jose E. Marchesi <jose.marchesi@oracle.com> * gdb.arch/sparc-sysstep.c: Include unistd.h for getpid.
Diffstat (limited to 'gdb/testsuite')
-rw-r--r--gdb/testsuite/ChangeLog4
-rw-r--r--gdb/testsuite/gdb.arch/sparc-sysstep.c1
2 files changed, 5 insertions, 0 deletions
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog
index e584ef0..68d564f 100644
--- a/gdb/testsuite/ChangeLog
+++ b/gdb/testsuite/ChangeLog
@@ -1,3 +1,7 @@
+2015-11-20 Jose E. Marchesi <jose.marchesi@oracle.com>
+
+ * gdb.arch/sparc-sysstep.c: Include unistd.h for getpid.
+
2015-11-19 Sandra Loosemore <sandra@codesourcery.com>
* gdb.base/nested-subp1.exp: Pass executable, not executable name,
diff --git a/gdb/testsuite/gdb.arch/sparc-sysstep.c b/gdb/testsuite/gdb.arch/sparc-sysstep.c
index 79e344b..1356339 100644
--- a/gdb/testsuite/gdb.arch/sparc-sysstep.c
+++ b/gdb/testsuite/gdb.arch/sparc-sysstep.c
@@ -18,6 +18,7 @@
along with this program. If not, see <http://www.gnu.org/licenses/>. */
#include <signal.h>
+#include <unistd.h>
int global;