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]

ARI fix: remove wait.h regression


  Currently common/linux-btrace.c uses
sys/wait.h instead of gdb_wait.h.

  This patch uses gdb_wait.h include
as already done in common/linux-ptrace.c

  I tried to test it on a amd64 linux machine and saw no change in
testsuite results.
  Is this OK?


Pierre Muller
as ARI maintainer


2013-05-01  Pierre Muller  <muller@sourceware.org>

        * common/linux-btrace.c: ARI fix: Include "gdb_wait.h"
        instead of <sys/wait.h>.

Index: src/gdb/common/linux-btrace.c
===================================================================
RCS file: /cvs/src/src/gdb/common/linux-btrace.c,v
retrieving revision 1.2
diff -u -p -r1.2 linux-btrace.c
--- src/gdb/common/linux-btrace.c       11 Mar 2013 08:38:27 -0000      1.2
+++ src/gdb/common/linux-btrace.c       1 May 2013 18:40:00 -0000
@@ -30,6 +30,7 @@
 #include "gdb_assert.h"
 #include "regcache.h"
 #include "gdbthread.h"
+#include "gdb_wait.h"

 #if HAVE_LINUX_PERF_EVENT_H

@@ -42,7 +43,6 @@
 #include <sys/user.h>
 #include <sys/ptrace.h>
 #include <sys/types.h>
-#include <sys/wait.h>
 #include <signal.h>

 /* A branch trace record in perf_event.  */


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