diff options
| author | Romain Naour <romain.naour@gmail.com> | 2018-12-23 14:33:28 +0100 |
|---|---|---|
| committer | Thomas Petazzoni <thomas.petazzoni@bootlin.com> | 2018-12-26 21:34:10 +0100 |
| commit | e61c44888a2a327e3e5c88fe23722eaa2e463856 (patch) | |
| tree | 182fd15af6367b4711aa35cde2f73dabf7b9e913 /package/gdb/8.2.1/0005-nat-fork-inferior-include-linux-ptrace.h.patch | |
| parent | 4168a974ef528c482099704c9b492e9f67efcd70 (diff) | |
| download | buildroot-e61c44888a2a327e3e5c88fe23722eaa2e463856.tar.gz buildroot-e61c44888a2a327e3e5c88fe23722eaa2e463856.zip | |
package/gdb: bump to version 8.2.1
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
https://github.com/bminor/binutils-gdb/commit/5de69bdbd0bbd7941b4cd93d4571f5e22cdb28be
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>
Diffstat (limited to 'package/gdb/8.2.1/0005-nat-fork-inferior-include-linux-ptrace.h.patch')
| -rw-r--r-- | package/gdb/8.2.1/0005-nat-fork-inferior-include-linux-ptrace.h.patch | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/package/gdb/8.2.1/0005-nat-fork-inferior-include-linux-ptrace.h.patch b/package/gdb/8.2.1/0005-nat-fork-inferior-include-linux-ptrace.h.patch new file mode 100644 index 0000000000..a47dcf31e8 --- /dev/null +++ b/package/gdb/8.2.1/0005-nat-fork-inferior-include-linux-ptrace.h.patch @@ -0,0 +1,51 @@ +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 + |

