This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
ARI fix: remove wait.h regression
- From: "Pierre Muller" <pierre dot muller at ics-cnrs dot unistra dot fr>
- To: <gdb-patches at sourceware dot org>
- Date: Tue, 7 May 2013 13:46:39 +0200
- Subject: 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. */