e61c44888a
GDB 8.2.1 brings the following fixes and enhancements over GDB 8.2:
* PR build/23516 (gdb build error under msys+mingw: strip can't handle gdb-add-index.exe)
* PR build/23623 (install-strip fails)
* PR rust/23626 (gdb crashes in upstream rust nil-enum test)
* PR rust/23650 (rust field name access error mentions "foo")
* PR gdb/23663 (gdb 8.1.1: undefined rpl_stat function with musl toolchains)
* PR python/23669 (gdb.execute("show commands") doesn't work)
* PR python/23714 (Command repetition stops working after gdb.execute)
* PR gdb/23838 (8.2 regression for invalid -data-directory)
* PR gdb/23974 ("info os" crash when specifying invalid object)
* PR gdb/23999 (SYMBOL_LANGUAGE assertion failure on AIX)
* PR gdb/24003 (Error when binary searching CUs for a specific DIE when using DWZ)
Remove upstream patch:
0006-Move-is_regular_file-from-common-utils.c-to-filestuf.patch
5de69bdbd0
See:
https://sourceware.org/ml/gdb-announce/2018/msg00004.html
Signed-off-by: Romain Naour <romain.naour@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
52 lines
1.8 KiB
Diff
52 lines
1.8 KiB
Diff
From fa319a6202cfe6e0415d28d6995019b18c16cd60 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>
|
|
---
|
|
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 ea71aad25f7..77b9e03878b 100644
|
|
--- a/gdb/nat/fork-inferior.c
|
|
+++ b/gdb/nat/fork-inferior.c
|
|
@@ -26,6 +26,7 @@
|
|
#include "common-gdbthread.h"
|
|
#include "signals-state-save-restore.h"
|
|
#include "gdb_tilde_expand.h"
|
|
+#include "linux-ptrace.h"
|
|
#include <vector>
|
|
|
|
extern char **environ;
|
|
--
|
|
2.14.4
|
|
|