This is the mail archive of the
gdb-cvs@sourceware.org
mailing list for the GDB project.
[binutils-gdb] sparc: fix build of gdb/testsuite/gdb.arch/sparc-sysstep.c
- From: Jose E.Marchesi <jemarch at sourceware dot org>
- To: gdb-cvs at sourceware dot org
- Date: 20 Nov 2015 09:42:10 -0000
- Subject: [binutils-gdb] sparc: fix build of gdb/testsuite/gdb.arch/sparc-sysstep.c
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=9c88ed8f116dc5f9471280c73f9ab08c81a86f2d
commit 9c88ed8f116dc5f9471280c73f9ab08c81a86f2d
Author: Jose E. Marchesi <jose.marchesi@oracle.com>
Date: Fri Nov 20 10:48:56 2015 +0100
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.
Diff:
---
gdb/testsuite/ChangeLog | 4 ++++
gdb/testsuite/gdb.arch/sparc-sysstep.c | 1 +
2 files changed, 5 insertions(+)
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;