This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH][SPARC] Add missing include in test program gdb.arch/sparc-sysstep.c


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;
 


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]