From: jose.marchesi@oracle.com (Jose E. Marchesi)
To: gdb-patches@sourceware.org
Subject: [PATCH][SPARC] Add missing include in test program gdb.arch/sparc-sysstep.c
Date: Thu, 19 Nov 2015 16:13:00 -0000 [thread overview]
Message-ID: <877flegdud.fsf@oracle.com> (raw)
Ok to commit?
commit fbe1572b5ad640e67fa1dec4ef9d3f95feb8079c
Author: Jose E. Marchesi <jose.marchesi@oracle.com>
Date: Thu Nov 19 11:22:31 2015 -0500
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-19 Jose E. Marchesi <jose.marchesi@oracle.com>
* gdb.arch/sparc-sysstep.c: Include unistd.h for getpid.
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog
index e712bc5..d7dee9b 100644
--- a/gdb/testsuite/ChangeLog
+++ b/gdb/testsuite/ChangeLog
@@ -1,5 +1,9 @@
2015-11-19 Jose E. Marchesi <jose.marchesi@oracle.com>
+ * gdb.arch/sparc-sysstep.c: Include unistd.h for getpid.
+
+2015-11-19 Jose E. Marchesi <jose.marchesi@oracle.com>
+
* gdb.base/callfuncs.exp (fetch_all_registers): Filter out the
pstate register when comparing registers values in
sparc64-*-linux-gnu targets to avoid spurious differences.
diff --git a/gdb/testsuite/gdb.arch/sparc-sysstep.c b/gdb/testsuite/gdb.arch/sparc-sysstep.c
index 79e344b..a29174f 100644
--- a/gdb/testsuite/gdb.arch/sparc-sysstep.c
+++ b/gdb/testsuite/gdb.arch/sparc-sysstep.c
@@ -1,3 +1,4 @@
+
/* Test single-stepping system call instructions in sparc.
Copyright 2014-2015 Free Software Foundation, Inc.
@@ -18,6 +19,7 @@
along with this program. If not, see <http://www.gnu.org/licenses/>. */
#include <signal.h>
+#include <unistd.h>
int global;
next reply other threads:[~2015-11-19 16:13 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-11-19 16:13 Jose E. Marchesi [this message]
2015-11-19 16:20 ` Pedro Alves
2015-11-20 9:43 ` Jose E. Marchesi
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=877flegdud.fsf@oracle.com \
--to=jose.marchesi@oracle.com \
--cc=gdb-patches@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).