8cfbda109f
This is a minor corrective release over GDB 11.1, fixing the following issues: PR sim/28302 (gdb fails to build with glibc 2.34) PR build/28318 (std::thread support configure check does not use CXX_DIALECT) PR gdb/28405 (arm-none-eabi: internal-error: ptid_t remote_target::select_thread_for_ambiguous_stop_reply(const target_waitstatus*): Assertion `first_resumed_thread != nullptr' failed) PR tui/28483 ([gdb/tui] breakpoint creation not displayed) PR build/28555 (uclibc compile failure since commit 4655f8509fd44e6efabefa373650d9982ff37fd6) PR rust/28637 (Rust characters will be encoded using DW_ATE_UTF) PR gdb/28758 (GDB 11 doesn't work correctly on binaries with a SHT_RELR (.relr.dyn) section) PR gdb/28785 (Support SHT_RELR (.relr.dyn) section) Drop patch 0006-sim-filter-out-SIGSTKSZ-PR-sim-28302.patch, which was merged upstream as commit 17d6f2152b583cdc7defafa7813b727a304bac5b. Drop patch 0008-Fix-build-on-rhES5.patch, which was merged upstream as commit df9ebc472a162306dee8ba6e02b99963c2babb7c? Drop patch 0009-gdbserver-aarch64-support.patch, which was merged upstream as commit eb79b2318066cafb75ffdce310e3bbd44f7c79e3. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com> Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
64 lines
1.9 KiB
Diff
64 lines
1.9 KiB
Diff
From 90ebe548922538b854de52e8b687384f44360984 Mon Sep 17 00:00:00 2001
|
|
From: Romain Naour <romain.naour@gmail.com>
|
|
Date: Fri, 22 Jun 2018 22:40:26 +0200
|
|
Subject: [PATCH] gdbserver: fix build for m68k
|
|
MIME-Version: 1.0
|
|
Content-Type: text/plain; charset=UTF-8
|
|
Content-Transfer-Encoding: 8bit
|
|
|
|
As for strace [1], when <sys/reg.h> is included after <linux/ptrace.h>,
|
|
the build fails on m68k with the following diagnostics:
|
|
|
|
In file included from ./../nat/linux-ptrace.h:28:0,
|
|
from linux-low.h:27,
|
|
from linux-m68k-low.c:20:
|
|
[...]/usr/include/sys/reg.h:26:3: error: expected identifier before numeric constant
|
|
PT_D1 = 0,
|
|
^
|
|
[...]usr/include/sys/reg.h:26:3: error: expected « } » before numeric constant
|
|
[...]usr/include/sys/reg.h:26:3: error: expected unqualified-id before numeric constant
|
|
In file included from linux-m68k-low.c:27:0:
|
|
[...]usr/include/sys/reg.h:99:1: error: expected declaration before « } » token
|
|
};
|
|
^
|
|
|
|
Fix this by moving <sys/reg.h> on top of "linux-low.h".
|
|
|
|
[1] https://github.com/strace/strace/commit/6ebf6c4f9e5ebca123a5b5f24afe67cf0473cf92
|
|
|
|
Signed-off-by: Romain Naour <romain.naour@gmail.com>
|
|
---
|
|
gdbserver/linux-m68k-low.cc | 9 +++++----
|
|
1 file changed, 5 insertions(+), 4 deletions(-)
|
|
|
|
diff --git a/gdbserver/linux-m68k-low.cc b/gdbserver/linux-m68k-low.cc
|
|
index 838ba353b0b..36679682b9a 100644
|
|
--- a/gdbserver/linux-m68k-low.cc
|
|
+++ b/gdbserver/linux-m68k-low.cc
|
|
@@ -17,6 +17,11 @@
|
|
along with this program. If not, see <http://www.gnu.org/licenses/>. */
|
|
|
|
#include "server.h"
|
|
+
|
|
+#ifdef HAVE_SYS_REG_H
|
|
+#include <sys/reg.h>
|
|
+#endif
|
|
+
|
|
#include "linux-low.h"
|
|
|
|
/* Linux target op definitions for the m68k architecture. */
|
|
@@ -80,10 +85,6 @@ m68k_target::low_decr_pc_after_break ()
|
|
void init_registers_m68k (void);
|
|
extern const struct target_desc *tdesc_m68k;
|
|
|
|
-#ifdef HAVE_SYS_REG_H
|
|
-#include <sys/reg.h>
|
|
-#endif
|
|
-
|
|
#define m68k_num_regs 29
|
|
#define m68k_num_gregs 18
|
|
|
|
--
|
|
2.29.2
|
|
|