diff options
-rw-r--r-- | package/gdb/patches/patch-gdb_amd64-linux-nat_c | 81 | ||||
-rw-r--r-- | package/gdb/patches/patch-gdb_common_gdb_thread_db_h | 37 | ||||
-rw-r--r-- | package/gdb/patches/patch-gdb_config_i386_linux64_mh | 11 | ||||
-rw-r--r-- | package/gdb/patches/patch-gdb_config_i386_linux_mh | 12 | ||||
-rw-r--r-- | toolchain/gdb/Makefile.inc | 4 |
5 files changed, 2 insertions, 143 deletions
diff --git a/package/gdb/patches/patch-gdb_amd64-linux-nat_c b/package/gdb/patches/patch-gdb_amd64-linux-nat_c deleted file mode 100644 index c50f1adf1..000000000 --- a/package/gdb/patches/patch-gdb_amd64-linux-nat_c +++ /dev/null @@ -1,81 +0,0 @@ ---- gdb-7.6.orig/gdb/amd64-linux-nat.c 2013-03-11 09:25:57.000000000 +0100 -+++ gdb-7.6/gdb/amd64-linux-nat.c 2013-10-26 22:30:11.000000000 +0200 -@@ -25,15 +25,13 @@ - #include "regset.h" - #include "linux-nat.h" - #include "amd64-linux-tdep.h" --#include "linux-btrace.h" --#include "btrace.h" - - #include "gdb_assert.h" - #include "gdb_string.h" - #include "elf/common.h" - #include <sys/uio.h> - #include <sys/ptrace.h> --#include <sys/debugreg.h> -+#include "debugreg.h" - #include <sys/syscall.h> - #include <sys/procfs.h> - #include <sys/user.h> -@@ -1121,47 +1119,6 @@ amd64_linux_read_description (struct tar - } - } - --/* Enable branch tracing. */ -- --static struct btrace_target_info * --amd64_linux_enable_btrace (ptid_t ptid) --{ -- struct btrace_target_info *tinfo; -- struct gdbarch *gdbarch; -- -- errno = 0; -- tinfo = linux_enable_btrace (ptid); -- -- if (tinfo == NULL) -- error (_("Could not enable branch tracing for %s: %s."), -- target_pid_to_str (ptid), safe_strerror (errno)); -- -- /* Fill in the size of a pointer in bits. */ -- gdbarch = target_thread_architecture (ptid); -- tinfo->ptr_bits = gdbarch_ptr_bit (gdbarch); -- -- return tinfo; --} -- --/* Disable branch tracing. */ -- --static void --amd64_linux_disable_btrace (struct btrace_target_info *tinfo) --{ -- int errcode = linux_disable_btrace (tinfo); -- -- if (errcode != 0) -- error (_("Could not disable branch tracing: %s."), safe_strerror (errcode)); --} -- --/* Teardown branch tracing. */ -- --static void --amd64_linux_teardown_btrace (struct btrace_target_info *tinfo) --{ -- /* Ignore errors. */ -- linux_disable_btrace (tinfo); --} - - /* Provide a prototype to silence -Wmissing-prototypes. */ - void _initialize_amd64_linux_nat (void); -@@ -1201,13 +1158,6 @@ _initialize_amd64_linux_nat (void) - - t->to_read_description = amd64_linux_read_description; - -- /* Add btrace methods. */ -- t->to_supports_btrace = linux_supports_btrace; -- t->to_enable_btrace = amd64_linux_enable_btrace; -- t->to_disable_btrace = amd64_linux_disable_btrace; -- t->to_teardown_btrace = amd64_linux_teardown_btrace; -- t->to_read_btrace = linux_read_btrace; -- - /* Register the target. */ - linux_nat_add_target (t); - linux_nat_set_new_thread (t, amd64_linux_new_thread); diff --git a/package/gdb/patches/patch-gdb_common_gdb_thread_db_h b/package/gdb/patches/patch-gdb_common_gdb_thread_db_h deleted file mode 100644 index ddcea422f..000000000 --- a/package/gdb/patches/patch-gdb_common_gdb_thread_db_h +++ /dev/null @@ -1,37 +0,0 @@ -* added from https://github.com/rofl0r/sabotage - ---- gdb-7.6.orig/gdb/common/gdb_thread_db.h 2013-01-01 07:32:54.000000000 +0100 -+++ gdb-7.6/gdb/common/gdb_thread_db.h 2013-08-13 16:37:40.000000000 +0200 -@@ -1,17 +1,6 @@ - #ifdef HAVE_THREAD_DB_H - #include <thread_db.h> - --#ifndef LIBTHREAD_DB_SO --#define LIBTHREAD_DB_SO "libthread_db.so.1" --#endif -- --#ifndef LIBTHREAD_DB_SEARCH_PATH --/* $sdir appears before $pdir for some minimal security protection: -- we trust the system libthread_db.so a bit more than some random -- libthread_db associated with whatever libpthread the app is using. */ --#define LIBTHREAD_DB_SEARCH_PATH "$sdir:$pdir" --#endif -- - #else - - /* Copyright (C) 1999-2013 Free Software Foundation, Inc. -@@ -453,3 +442,14 @@ extern td_err_e td_thr_dbresume (const t - #endif /* thread_db.h */ - - #endif /* HAVE_THREAD_DB_H */ -+ -+#ifndef LIBTHREAD_DB_SO -+#define LIBTHREAD_DB_SO "libthread_db.so.1" -+#endif -+ -+#ifndef LIBTHREAD_DB_SEARCH_PATH -+/* $sdir appears before $pdir for some minimal security protection: -+ we trust the system libthread_db.so a bit more than some random -+ libthread_db associated with whatever libpthread the app is using. */ -+#define LIBTHREAD_DB_SEARCH_PATH "$sdir:$pdir" -+#endif diff --git a/package/gdb/patches/patch-gdb_config_i386_linux64_mh b/package/gdb/patches/patch-gdb_config_i386_linux64_mh deleted file mode 100644 index 4db9c518b..000000000 --- a/package/gdb/patches/patch-gdb_config_i386_linux64_mh +++ /dev/null @@ -1,11 +0,0 @@ ---- gdb-7.6.orig/gdb/config/i386/linux64.mh 2013-03-11 09:25:58.000000000 +0100 -+++ gdb-7.6/gdb/config/i386/linux64.mh 2013-09-04 13:19:59.000000000 +0200 -@@ -3,7 +3,7 @@ NATDEPFILES= inf-ptrace.o fork-child.o \ - i386-nat.o amd64-nat.o amd64-linux-nat.o \ - linux-nat.o linux-osdata.o \ - proc-service.o linux-thread-db.o linux-fork.o \ -- linux-procfs.o linux-ptrace.o linux-btrace.o -+ linux-procfs.o linux-ptrace.o - NAT_FILE= config/nm-linux.h - NAT_CDEPS = $(srcdir)/proc-service.list - diff --git a/package/gdb/patches/patch-gdb_config_i386_linux_mh b/package/gdb/patches/patch-gdb_config_i386_linux_mh deleted file mode 100644 index c137b8a0a..000000000 --- a/package/gdb/patches/patch-gdb_config_i386_linux_mh +++ /dev/null @@ -1,12 +0,0 @@ ---- gdb-7.6.orig/gdb/config/i386/linux.mh 2013-03-11 09:25:58.000000000 +0100 -+++ gdb-7.6/gdb/config/i386/linux.mh 2013-09-04 13:19:46.000000000 +0200 -@@ -4,8 +4,7 @@ NAT_FILE= config/nm-linux.h - NATDEPFILES= inf-ptrace.o fork-child.o \ - i386-nat.o i386-linux-nat.o \ - proc-service.o linux-thread-db.o \ -- linux-nat.o linux-osdata.o linux-fork.o linux-procfs.o linux-ptrace.o \ -- linux-btrace.o -+ linux-nat.o linux-osdata.o linux-fork.o linux-procfs.o linux-ptrace.o - NAT_CDEPS = $(srcdir)/proc-service.list - - # The dynamically loaded libthread_db needs access to symbols in the diff --git a/toolchain/gdb/Makefile.inc b/toolchain/gdb/Makefile.inc index 0ac2dc8c3..23912e1e6 100644 --- a/toolchain/gdb/Makefile.inc +++ b/toolchain/gdb/Makefile.inc @@ -2,8 +2,8 @@ # material, please see the LICENCE file in the top-level directory. PKG_NAME:= gdb -PKG_VERSION:= 7.6 -PKG_MD5SUM:= fda57170e4d11cdde74259ca575412a8 +PKG_VERSION:= 7.7 +PKG_MD5SUM:= 271a18f41858a7e98b28ae4eb91287c9 PKG_RELEASE:= 1 PKG_SITES:= ${MASTER_SITE_GNU:=gdb/} DISTFILES:= $(PKG_NAME)-$(PKG_VERSION).tar.bz2 |