diff options
author | John Baldwin <jhb@FreeBSD.org> | 2019-06-01 00:44:08 +0000 |
---|---|---|
committer | John Baldwin <jhb@FreeBSD.org> | 2019-06-01 00:44:08 +0000 |
commit | 8113892617de0ababfc7c5773c7d147f807243d3 (patch) | |
tree | 215f908414b55511ecbc05cc9435c5638fcd39b6 /devel/gdb/files/patch-gdb_fbsd-nat.c | |
parent | - Update to 20190601 (diff) |
Update port to GDB 8.3.
New features in GDB 8.3 include support for DWARF index caches and
styling (colors) in the CLI and TUI. Source code styling is also
available via the new SOURCE_HIGHLIGHT option (enabled by default).
GDB 8.3 also adds support for FreeBSD/riscv64.
In addition, kgdb has been updated for changes in 8.3 along with
support for FreeBSD/riscv64 kernels.
The libc++ helpers have been updated to a newer version which adds
support for std::list<> and std::forward_list<>. The helpers now
also support Python 3.
Finally, a few post-8.3 patches have been backported which add suport
for TLS (Thread Local Storage) variables on FreeBSD amd64, i386,
powerpc, and riscv architectures. Note that amd64 and i386 do not
support examining TLS variables in core dumps currently. This support
along with support for additional architectures require kernel changes
and will be added in the future once the kernel has been updated.
Reviewed by: pizzamig (maintainer)
Differential Revision: https://reviews.freebsd.org/D20403
Notes
Notes:
svn path=/head/; revision=503200
Diffstat (limited to 'devel/gdb/files/patch-gdb_fbsd-nat.c')
-rw-r--r-- | devel/gdb/files/patch-gdb_fbsd-nat.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/devel/gdb/files/patch-gdb_fbsd-nat.c b/devel/gdb/files/patch-gdb_fbsd-nat.c index a5768a24261c..40fcdf0cf6e2 100644 --- a/devel/gdb/files/patch-gdb_fbsd-nat.c +++ b/devel/gdb/files/patch-gdb_fbsd-nat.c @@ -1,17 +1,17 @@ ---- gdb/fbsd-nat.c.orig 2017-09-14 09:28:17 UTC -+++ gdb/fbsd-nat.c -@@ -1108,6 +1108,14 @@ fbsd_nat_target::resume (ptid_t ptid, int step, enum gdb_signal signo) - struct thread_info *tp; - int request; +--- gdb/fbsd-nat.c.orig 2019-05-11 11:19:03.000000000 -0700 ++++ gdb/fbsd-nat.c 2019-05-24 16:25:52.961523000 -0700 +@@ -1178,6 +1178,14 @@ fbsd_nat_target::resume (ptid_t ptid, int step, enum g + /* If ptid is a specific LWP, suspend all other LWPs in the process. */ + inferior *inf = find_inferior_ptid (ptid); +#ifndef PT_LWP_EVENTS + /* When LWP events are not supported, a new thread might already be + running that has not yet reported an event when GDB wishes to -+ only run a single thread. Force an update of the thread list ++ only run a single thread. Force an update of the thread list + to ensure that any such threads are suspended before the process + is resumed. */ -+ fbsd_add_threads (ptid_get_pid (ptid)); ++ fbsd_add_threads (ptid.pid ()); +#endif - ALL_NON_EXITED_THREADS (tp) + for (thread_info *tp : inf->non_exited_threads ()) { - if (tp->ptid.pid () != ptid.pid ()) + int request; |