diff options
author | John Baldwin <jhb@FreeBSD.org> | 2015-04-29 13:53:45 +0000 |
---|---|---|
committer | John Baldwin <jhb@FreeBSD.org> | 2015-04-29 13:53:45 +0000 |
commit | bc869246e9838943d99c2c0e3f2bda6c325a77d0 (patch) | |
tree | d9bb7f99a01d6552a99e35414062781ad97ef441 /devel/gdb/files/commit-c5cb74e | |
parent | devel/onscripter: unbreak build against lang/lua53 (diff) |
Update to 7.9.
- Move changes that have been adopted upstream after 7.9 into extra patches
named after the commit to GDB's master branch. This includes previous
patches such as the signal trampoline detection fixes and XSAVE support
as well as well as new fixes such as fixing 'gcore' to not require procfs.
- The tui-io.c patch previously needed with new readline has been accepted
upstream.
- The remaining patches have been updated to apply cleanly.
- The threads target has been fixed to actually pass register requests for
LWP-backed threads down to the ptrace backends without detouring via
libthread_db which actually fixes AVX with threads.
PR: 199451
Differential Revision: https://reviews.freebsd.org/D2293
Approved by: bapt, luca.pizzamiglio@gmail.com (maintainer)
Notes
Notes:
svn path=/head/; revision=384978
Diffstat (limited to 'devel/gdb/files/commit-c5cb74e')
-rw-r--r-- | devel/gdb/files/commit-c5cb74e | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/devel/gdb/files/commit-c5cb74e b/devel/gdb/files/commit-c5cb74e new file mode 100644 index 000000000000..6bbae88055e0 --- /dev/null +++ b/devel/gdb/files/commit-c5cb74e @@ -0,0 +1,22 @@ +diff --git gdb/amd64fbsd-tdep.c gdb/amd64fbsd-tdep.c +index 2d49cdf..abb0cab 100644 +--- gdb/amd64fbsd-tdep.c ++++ gdb/amd64fbsd-tdep.c +@@ -37,12 +37,16 @@ + static CORE_ADDR + amd64fbsd_sigcontext_addr (struct frame_info *this_frame) + { ++ struct gdbarch *gdbarch = get_frame_arch (this_frame); ++ enum bfd_endian byte_order = gdbarch_byte_order (gdbarch); + CORE_ADDR sp; ++ gdb_byte buf[8]; + + /* The `struct sigcontext' (which really is an `ucontext_t' on + FreeBSD/amd64) lives at a fixed offset in the signal frame. See + <machine/sigframe.h>. */ +- sp = frame_unwind_register_unsigned (this_frame, AMD64_RSP_REGNUM); ++ get_frame_register (this_frame, AMD64_RSP_REGNUM, buf); ++ sp = extract_unsigned_integer (buf, 8, byte_order); + return sp + 16; + } + |