non port: devel/gdb/files/kgdb/fbsd-kvm.c |
Number of commits found: 21 |
Thursday, 18 Jan 2024
|
22:18 John Baldwin (jhb)
devel/gdb: Upgrade to 14.1
- Notable upstream fixes for FreeBSD include better support for
multiprocessing as well as support for AVX and other extended
registers in core dumps on newer AMD CPUs.
- Use all-gdb as the build target to reduce build time.
- sim can no longer be excluded during the tarball as a couple of
source files in GDB now use headers from sim/ unconditionally.
Instead, use --disable-sim to skip building the simulators.
Reviewed by: pizzamig
Sponsored by: DARPA
Differential Revision: https://reviews.freebsd.org/D43053
af0d94a |
Tuesday, 5 Sep 2023
|
18:16 Kyle Evans (kevans) Author: Mark Jonhston
devel/gdb: kgdb: Handle stoppcbs compat
Use __FreeBSD_version to decide whether to dereference the stoppcbs
symbol. PORTREVISION will be bumped as part of the next commit, which
fixes another KBI breakage.
Reviewed by: jhb, kevans
Approved by: jhb (maintainer)
MFH: 2023Q3
Differential Revision: https://reviews.freebsd.org/D39951
7e28528 |
Friday, 17 Mar 2023
|
23:47 John Baldwin (jhb)
devel/gdb: Upgrade to 13.1.
Reviewed by: pizzamig (maintainer)
Differential Revision: https://reviews.freebsd.org/D38759
27ee37a |
Thursday, 20 Oct 2022
|
07:21 Luca Pizzamiglio (pizzamig)
devel/gdb: Fix support to readline 8.2
While here, half fix a warning in kgdb
60077ba |
Tuesday, 10 May 2022
|
17:41 John Baldwin (jhb)
devel/gdb: Update to 12.1.
One notable feature included in 12.1 is async target support
permitting the use of commands like continue&.
In addition, this commit backports various post-12 commits to add
support for hardware breakpoints/watchpoints on aarch64, support for
resolving TLS variables from core dumps on amd64 and i386 via the
recently added NT_X86_SEGBASES core dump note, and support for
resolving TLS variables on arm and aarch64 via the recently added
NT_ARM_TLS register set.
Reviewed by: pizzamig
Differential Revision: https://reviews.freebsd.org/D35111
1c25ded |
Thursday, 14 Oct 2021
|
22:21 John Baldwin (jhb)
devel/gdb: Avoid a divide by zero in kgdb.
Don't divide by zero if the message buffer size in a crashdump is
zero.
Reported by: glebius
Reviewed by: pizzamig (maintainer), emaste
Sponsored by: Netflix
Differential Revision: https://reviews.freebsd.org/D32486
8ca1b9d |
Monday, 20 Sep 2021
|
20:46 John Baldwin (jhb)
devel/gdb: Update to 11.1.
This also pulls in some updates to libcxx-gdbpy to add pretty printers
for std::deque<>, std::stack<>, and std::unordered_map<>
Reviewed by: pizzamig (maintainer)
Differential Revision: https://reviews.freebsd.org/D32000
242d369 |
Tuesday, 6 Apr 2021
|
14:31 Mathieu Arnold (mat)
all: Remove all other $FreeBSD keywords.
135fdee |
Monday, 7 Dec 2020
|
20:39 jhb
Update kernel relocation code in kgdb for GDB 10.
This fixes the build of KGDB on head.
Pointy hat to: jhb (for only testing kgdb on stable/12)
Reviewed by: pizzamig (maintainer)
Differential Revision: https://reviews.freebsd.org/D27499
|
Friday, 4 Dec 2020
|
23:19 pizzamig
devel/gdb: Update to 10.1
Reviewed by: jhb@
Differential Revision: https://reviews.freebsd.org/D27040
|
Monday, 9 Mar 2020
|
20:58 jhb
Update to GDB 9.1.
GDB 9 rejects attempts to build in the source tree, so this uses
CONFIGURE_OUTSOURCE.
Some patch files were renamed to track moving of files in upstream.
Approved by: pizzamig (maintainer)
Differential Revision: https://reviews.freebsd.org/D23932
|
Thursday, 27 Feb 2020
|
01:01 jhb
Bring in various kgdb fixes for powerpc.
This merges in several fixes for kgdb on powerpc including fixing
backtraces and cross-debugging support.
Submitted by: luporl
Reviewed by: pizzamig (maintainer)
Differential Revision: https://reviews.freebsd.org/D23844
|
Saturday, 1 Jun 2019
|
00:44 jhb
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
|
Monday, 24 Sep 2018
|
17:23 jhb
Upgrade to 8.2.
- Remove patches for upstream commits in 8.2.
- Add an upstream patch to include NT_PROCSTAT_AUXV, NT_PROCSTAT_PS_STRINGS,
and NT_PROCSTAT_VMMAP notes in core dumps generated by 'gcore'.
- Update kgdb for changes in 8.2.
- Add 'USES=gettext-runtime'
Reviewed by: pizzamig (maintainer)
Differential Revision: https://reviews.freebsd.org/D17085
|
Wednesday, 25 Jul 2018
|
17:28 jhb
Fixes for kgdb including initial FreeBSD/arm support.
- Improve fallback handling for the read of pcb_size.
If for some reason kgdb has only the kernel's debug info, a read of
pcb_size will simply return 0, resulting in an exception when unwinding
the stack of a thread that was on a CPU at the time the dump was
created. In this case, fall back to using sizeof(struct pcb).
- Always supply a value for the PC register on x86.
A thread's PCB may have been swapped out, and a dummy value ensures that
we don't get an exception while enumerating threads in a dump.
- Mark all 64-bit address bits as valid for aarch64 kernels.
ARMv8 supports pointer tagging in which case the upper 8 bits of VAs are
ignored, but FreeBSD kernels are linked such that they depend on those
upper 8 bits being set to 1. GDB was stripping those bits by default
causing KVAs to be mapped to invalid addresses.
- Rework kgdb -w support to only open /dev/mem writable.
Don't depend on the gdb global 'write_files' option which tries to
rewrite the kernel binary on close which can crash. Instead, add an
optional '-w' flag to 'target vmcore' which opens the vmcore with
O_RDWR instead of O_RDONLY. Change the kgdb '-w' option to set this
flag in the nested 'target vmcore' command rather than passing the
global '-w' option to gdb.
- Garbage collect old code for reading dumptid.
- First cut at FreeBSD/arm kernel support.
Tested on live kernel on my RPi, but not against a crashdump, and only
trapframes from userland, not a nested trap.
Submitted by: markj (1, 2)
Approved by: kan
Differential Revision: https://reviews.freebsd.org/D16013
|
Wednesday, 14 Mar 2018
|
14:33 pizzamig
devel/gdb: Update to version 8.1
The official annoucement is available here:
https://www.gnu.org/software/gdb/download/ANNOUNCEMENT
Moreover:
* support for 'info proc' is added (jhb@)
* update kgdb to use gdb 8.1
Reviewed by: jhb@
Differential Revision: https://reviews.freebsd.org/D14148
|
Wednesday, 23 Aug 2017
|
16:07 jhb
Add aarch64 support to GDB.
This includes support for cross-debugging aarch64 process cores and
kernels as well as native support for aarch64 processes. Hardware
single stepping is supported, but hardware watchpoints are not yet
supported.
Reviewed by: luca.pizzamiglio@gmail.com (maintainer)
Approved by: az (implicit)
Differential Revision: https://reviews.freebsd.org/D12074
|
Friday, 28 Jul 2017
|
21:20 jhb
Upgrade to GDB 8.0.
- Commit b5430a3ced fixes parsing of 32-bit MIPS process cores.
- kgdb has been ported to 8.0 including renaming the new OSABI constant,
using gdb_bfd_openr, new return type of ldirname, and solib_add
changed.
- GDB 8.0 requires C++11, however the port is marked as requiring C++14
as a workaround for bugs in clang 10.3.
- patch-armfbsd is updated for the new OSABI constant names (a.out was
removed in 8.0) and new filename convention (arm-fbsd-*)
- patch-gdb-amd64-bsd-nat.c (renamed from patch-gdbamd64-bsd-nat.c) is
simplified to just store the r_flags value before collecting registers
from the register cache rather than a full copy of the entire register
set.
- patch-gdb-corelow.c has been removed. It isn't really correct and if
arm cores still cause core dumps the error is in arm-fbsd-tdep.c.
- patch-gdb-i386-fbsd-nat.c renamed to account for rename of patched
file.
- patch-gdb-x86bsd-nat.c has been removed. The file was renamed, but the
stock file also compiled fine for me on i386.
PR: 221025 (exp-run for 10.3)
Submitted by: luca.pizzamiglio@gmail.com (original version)
Reviewed by: luca.pizzamiglio@gmail.com (maintainer)
Approved by: brooks
Differential Revision: https://reviews.freebsd.org/D11465
|
Sunday, 18 Dec 2016
|
16:08 tijl
Update to 7.12.
PR: 214927
Submitted by: luca.pizzamiglio@gmail.com (maintainer)
|
Monday, 14 Mar 2016
|
16:19 tijl
Update devel/gdb to 7.11 which includes new thread support implemented
by jhb. Special thanks to jhb for the amazing work on gdb!
PR: 207972
Submitted by: luca.pizzamiglio@gmail.com (maintainer)
|
Tuesday, 6 Oct 2015
|
18:52 jhb
Add a new KGDB option to the devel/gdb port. This adds a forward port
of the kernel-specific bits of kgdb to recent gdb. It only supports
amd64, i386, powerpc, powerpc64, and sparc64.
PR: 203299
Reviewed by: bdrewery
Glanced at by: emaste, jilles, luca.pizzamiglio@gmail.com (maintainer)
Differential Revision: https://reviews.freebsd.org/D3727
|
Number of commits found: 21 |