From 2a54819744508a9a45a16457fc92c8d26424998b Mon Sep 17 00:00:00 2001 From: "A. Wilcox" Date: Sun, 16 Jun 2019 22:41:24 +0000 Subject: system/gdb: bump to 8.3 --- system/gdb/APKBUILD | 8 ++--- system/gdb/arm64.patch | 8 ++--- system/gdb/stopcode-lock.patch | 75 ------------------------------------------ 3 files changed, 5 insertions(+), 86 deletions(-) delete mode 100644 system/gdb/stopcode-lock.patch diff --git a/system/gdb/APKBUILD b/system/gdb/APKBUILD index a8ce6acfd..71030a769 100644 --- a/system/gdb/APKBUILD +++ b/system/gdb/APKBUILD @@ -1,7 +1,7 @@ # Contributor: Natanael Copa # Maintainer: A. Wilcox pkgname=gdb -pkgver=8.2.1 +pkgver=8.3 pkgrel=0 pkgdesc="The GNU Debugger" url="https://www.sourceware.org/gdb/" @@ -17,7 +17,6 @@ source="https://ftp.gnu.org/gnu/$pkgname/$pkgname-$pkgver.tar.xz ppc-musl.patch ppc-ptregs.patch remove-extraneous-include.patch - stopcode-lock.patch arm64.patch " @@ -53,10 +52,9 @@ package() { rm -rf "$pkgdir"/usr/lib } -sha512sums="2aa81cfd389bb48c35d7d9f95cc10e88b4f7ad4597bdde0f8f1fd312f60f10d9fb2cc6e5a9355227d89ff328f7feb0fc411a69394560cafeb9fa75d35d896d11 gdb-8.2.1.tar.xz +sha512sums="47ac074d20a09a3fac8f4a41dce0a0cbe6ef702f7dc21ba8b7d650d306128dcae481e9a16bf65e596b3a541dc82ae57c02bcbb786d551b4ef3e2917b9b6f0ae1 gdb-8.3.tar.xz 986e68275f7692f39b5d8aedeb9f9e88f0e5bebb3f8c7f104933c525d35ca54fc90e18698c1e3e1009e8a188e5e70d6f252cb39e4c75e37db7bf479017e0da32 s390x-use-elf-gdb_fpregset_t.patch 04911f87904b62dd7662435f9182b20485afb29ddb3d6398a9d31fef13495f7b70639c77fdae3a40e2775e270d7cd40d0cfd7ddf832372b506808d33c8301e01 ppc-musl.patch b75e1c1ee503a1948a7d5b8d90427b5c7d38ded69978056cee0adca222771a5c95ed1ac73127fcae7b795ea94296344eee5fca47e4cd04b418c164a756fb0933 ppc-ptregs.patch 3ff31774ba78c1208415289566b901debd815da8b53acefe4a0785e7b2bbcff39585a556d44ff2f7d8d639ebc047620b96e72573acae376d8f23aa98dd1fe286 remove-extraneous-include.patch -720d6cbc71d5d4f5cc8955b18a76661688534d409e2beb53e9e2d2322a303fa622e622b583e1f6c50cf3f32b8abe4f5320a6885e7680769c92ef5bb09ef59d1d stopcode-lock.patch -8bba2fdf6a53ed61cad2c1ec58e19014818d2481531008c024a0d863ea0bf7c466592cfee7e1bee56262df44cc557573a7f472b3fa8afcb46fe0220192e86091 arm64.patch" +f7beecfcd9c642930dec36d7b02d5a875bcdf07b5fad82a4ef3443332c0f60706d5b48c6ae8bb68bdec0398d3c32ef35e2478dcfb1eb7806b2699cfa2df29e01 arm64.patch" diff --git a/system/gdb/arm64.patch b/system/gdb/arm64.patch index a718a8c6a..c8c9c29cb 100644 --- a/system/gdb/arm64.patch +++ b/system/gdb/arm64.patch @@ -9,12 +9,8 @@ provide the same headers as the kernel or musl. --- a/gdb/nat/aarch64-sve-linux-ptrace.h +++ b/gdb/nat/aarch64-sve-linux-ptrace.h -@@ -20,12 +20,12 @@ - #ifndef AARCH64_SVE_LINUX_PTRACE_H - #define AARCH64_SVE_LINUX_PTRACE_H - --#include -+#include +@@ -23,9 +23,9 @@ + #include #include #include #include diff --git a/system/gdb/stopcode-lock.patch b/system/gdb/stopcode-lock.patch deleted file mode 100644 index 6a4e3d855..000000000 --- a/system/gdb/stopcode-lock.patch +++ /dev/null @@ -1,75 +0,0 @@ -From: Andrew Burgess -Date: Tue, 3 Jul 2018 18:02:48 +0000 (+0100) -Subject: gdb: Avoid using W_STOPCODE(0) as this is ambiguous on MIPS -X-Git-Tag: users/ARM/embedded-binutils-master-2018q4~1172 -X-Git-Url: https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;a=commitdiff_plain;h=953473375500a809fbb3eca3efa4dbb670c3a32f - -gdb: Avoid using W_STOPCODE(0) as this is ambiguous on MIPS - -The MIPS target supports 127 signals, and this can create an ambiguity -in process wait statuses. A status value of 0x007f could potentially -indicate a process that has exited with signal 127, or a process that -has stopped with signal 0. - -In uClibc-ng the interpretation of 0x007f is that the process has -exited with signal 127 rather than stopped with signal 0, and so, -WIFSTOPPED (W_STOPCODE (0)) will be false rather than true as it would -be on most other platforms. - -Given that it's pretty easy to avoid using W_STOPCODE (0), lets do that. - -gdb/ChangeLog: - - * linux-nat.c (linux_nat_target::follow_fork): Avoid using - 'W_STOPCODE (0)' as this could be ambiguous. ---- - -diff --git a/gdb/linux-nat.c b/gdb/linux-nat.c -index 86d3dfd..d2c88ad 100644 ---- a/gdb/linux-nat.c -+++ b/gdb/linux-nat.c -@@ -445,7 +445,6 @@ linux_nat_target::follow_fork (int follow_child, int detach_fork) - if (!follow_child) - { - struct lwp_info *child_lp = NULL; -- int status = W_STOPCODE (0); - int has_vforked; - ptid_t parent_ptid, child_ptid; - int parent_pid, child_pid; -@@ -465,6 +464,8 @@ linux_nat_target::follow_fork (int follow_child, int detach_fork) - /* Detach new forked process? */ - if (detach_fork) - { -+ int child_stop_signal = 0; -+ bool detach_child = true; - struct cleanup *old_chain = make_cleanup (delete_lwp_cleanup, - child_lp); - -@@ -484,18 +485,24 @@ linux_nat_target::follow_fork (int follow_child, int detach_fork) - if (!gdbarch_software_single_step_p (target_thread_architecture - (parent_ptid))) - { -+ int status; -+ - linux_disable_event_reporting (child_pid); - if (ptrace (PTRACE_SINGLESTEP, child_pid, 0, 0) < 0) - perror_with_name (_("Couldn't do single step")); - if (my_waitpid (child_pid, &status, 0) < 0) - perror_with_name (_("Couldn't wait vfork process")); -+ else -+ { -+ detach_child = WIFSTOPPED (status); -+ child_stop_signal = WSTOPSIG (status); -+ } - } - -- if (WIFSTOPPED (status)) -+ if (detach_child) - { -- int signo; -+ int signo = child_stop_signal; - -- signo = WSTOPSIG (status); - if (signo != 0 - && !signal_pass_state (gdb_signal_from_host (signo))) - signo = 0; -- cgit v1.2.3-60-g2f50