Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
devel/gdb: kgdb: fixup aarch64 pcb/trapframe layout
base 1c1f31a5e5 and 2ecbbcc7cab altered the pcb and trapframe layouts in osreldate 1400084. This version of the patch is effectively extracted from work done by @jhb in CheriBSD's gdb fork, then ported forward to work with the gdb 13.x program_space_data equivalent. With this + D39951, I can again get a solid backtrace in recent main. While we're here, remove some special handling for kthreads not yet run, as the stack pointer is in-fact stored in pcb_sp in cpu_copy_thread and cpu_fork. This silences the following exception: Python Exception <class 'gdb.error'>: Register 2 is not available but there's not really any effect on the end result, since the thread hasn't been scheduled yet. Reviewed by: jhb Approved by: jhb (maintainer) MFH: 2023Q3 Differential Revision: https://reviews.freebsd.org/D41684
- Loading branch information
Showing
2 changed files
with
105 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
PORTNAME= gdb | ||
DISTVERSION= 13.1 | ||
PORTREVISION= 3 | ||
PORTREVISION= 4 | ||
CATEGORIES= devel | ||
MASTER_SITES= GNU | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters