This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH 0/6] Use PTRACE_GETREGSET and PTRACE_SETREGSET in arm-linux-nat.c
- From: Yao Qi <qiyaoltc at gmail dot com>
- To: Mark Wielaard <mjw at redhat dot com>
- Cc: Yao Qi <qiyaoltc at gmail dot com>, gdb-patches at sourceware dot org
- Date: Tue, 02 Jun 2015 10:30:25 +0100
- Subject: Re: [PATCH 0/6] Use PTRACE_GETREGSET and PTRACE_SETREGSET in arm-linux-nat.c
- Authentication-results: sourceware.org; auth=none
- References: <1432822816-32327-1-git-send-email-yao dot qi at linaro dot org> <556C3F54 dot 2060502 at gmail dot com> <1433231848 dot 4538 dot 212 dot camel at bordewijk dot wildebeest dot org>
Mark Wielaard <mjw@redhat.com> writes:
> I believe this caused a build regression on i386. After this patch
> series went in various buildbot i386 buildslaves builds started failing:
> http://gdb-build.sergiodj.net/waterfall
>
> ../../binutils-gdb/gdb/i386-linux-nat.c: In function âfetch_xstateregsâ:
> ../../binutils-gdb/gdb/i386-linux-nat.c:329:8: error:
> âhave_ptrace_getregsetâ undeclared (first use in this function)
> ../../binutils-gdb/gdb/i386-linux-nat.c:329:8: note: each undeclared
> identifier is reported only once for each function it appears in
> ../../binutils-gdb/gdb/i386-linux-nat.c: In function âstore_xstateregsâ:
> ../../binutils-gdb/gdb/i386-linux-nat.c:352:8: error:
> âhave_ptrace_getregsetâ undeclared (first use in this function)
> make[2]: *** [i386-linux-nat.o] Error 1
>
> Could you take a look?
Oh, I forget rebuilding GDB for i686 target. This patch fixes the build failure.
--
Yao (éå)
From: Yao Qi <yao.qi@linaro.org>
Date: Tue, 2 Jun 2015 10:28:03 +0100
Subject: [PATCH] Include linux-nat.h in i386-linux-nat.c
This commit fixes a build failure on i386-linux.
gdb:
2015-06-02 Yao Qi <yao.qi@linaro.org>
* i386-linux-nat.c: Include linux-nat.h.
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 5867465..eca000f 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,7 @@
+2015-06-02 Yao Qi <yao.qi@linaro.org>
+
+ * i386-linux-nat.c: Include linux-nat.h.
+
2015-06-01 Andreas Schwab <schwab@linux-m68k.org>
Jan Kratochvil <jan.kratochvil@redhat.com>
diff --git a/gdb/i386-linux-nat.c b/gdb/i386-linux-nat.c
index 5666361..4401a2f 100644
--- a/gdb/i386-linux-nat.c
+++ b/gdb/i386-linux-nat.c
@@ -33,6 +33,7 @@
#include "i386-linux-tdep.h"
#include "x86-xstate.h"
+#include "linux-nat.h"
#include "x86-linux-nat.h"
#include "nat/linux-ptrace.h"