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>
54 lines
1.9 KiB
Diff
54 lines
1.9 KiB
Diff
From c8454711eca2e79437e17ed1e1e68b48b4c8d927 Mon Sep 17 00:00:00 2001
|
|
From: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
|
|
Date: Sun, 24 Jun 2018 23:33:55 +0200
|
|
Subject: [PATCH] nat/fork-inferior: include linux-ptrace.h
|
|
|
|
To decide whether fork() or vfork() should be used, fork-inferior.c
|
|
uses the following test:
|
|
|
|
#if !(defined(__UCLIBC__) && defined(HAS_NOMMU))
|
|
|
|
However, HAS_NOMMU is never defined, because it gets defined in
|
|
linux-ptrace.h, which is not included by fork-inferior.c. Due to this,
|
|
gdbserver fails to build on noMMU architectures. This commit fixes
|
|
that by simply including linux-ptrace.h.
|
|
|
|
This bug was introduced by commit
|
|
2090129c36c7e582943b7d300968d19b46160d84 ("Share fork_inferior et al
|
|
with gdbserver"). Indeed, the same fork()/vfork() selection was done,
|
|
but in another file where linux-ptrace.h was included.
|
|
|
|
Fixes the following build issue:
|
|
|
|
../nat/fork-inferior.c: In function 'pid_t fork_inferior(const char*, const string&, char**, void (*)(), void (*)(int), void (*)(), const char*, void (*)(const char*, char* const*, char* const*))':
|
|
../nat/fork-inferior.c:376:11: error: 'fork' was not declared in this scope
|
|
pid = fork ();
|
|
^~~~
|
|
../nat/fork-inferior.c:376:11: note: suggested alternative: 'vfork'
|
|
pid = fork ();
|
|
^~~~
|
|
vfork
|
|
|
|
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
|
|
[Romain: rebase on gdb 8.3]
|
|
Signed-off-by: Romain Naour <romain.naour@gmail.com>
|
|
---
|
|
gdb/nat/fork-inferior.c | 1 +
|
|
1 file changed, 1 insertion(+)
|
|
|
|
diff --git a/gdb/nat/fork-inferior.c b/gdb/nat/fork-inferior.c
|
|
index 7ba0126871d..53e1ec72f09 100644
|
|
--- a/gdb/nat/fork-inferior.c
|
|
+++ b/gdb/nat/fork-inferior.c
|
|
@@ -27,6 +27,7 @@
|
|
#include "gdbsupport/pathstuff.h"
|
|
#include "gdbsupport/signals-state-save-restore.h"
|
|
#include "gdbsupport/gdb_tilde_expand.h"
|
|
+#include "linux-ptrace.h"
|
|
#include <vector>
|
|
|
|
extern char **environ;
|
|
--
|
|
2.29.2
|
|
|