mdb ::regs could print registers from a ucontext
The ucontext_t structure used by signal handling, getcontext(2) and setcontext(2) includes a gregset_t that contains the state of the general registers when the context was saved. The ::regs ($r) dcmd will print the general registers for a thread in the attached process or core file, but it could also be used to print the same information from a ucontext_t.
We should add a flag, -u, causing ::regs to interpret the address as the location of a ucontext_t rather than a thread.
Updated by Electric Monk almost 6 years ago
- Status changed from New to Closed
- % Done changed from 90 to 100
commit 8f88a51fa5d22e056a70484fd9496b2dee9876b0 Author: Joshua M. Clulow <firstname.lastname@example.org> Date: 2015-02-19T15:29:01.000Z 5628 mdb ::regs could print registers from a ucontext 5629 mdb ::ucontext should print uc_flags symbols Reviewed by: Timothy J Fontaine <email@example.com> Reviewed by: Gordon Ross <firstname.lastname@example.org> Reviewed by: Dan McDonald <email@example.com> Approved by: Richard Lowe <firstname.lastname@example.org>