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 over 6 years ago
- Status changed from New to Closed
- % Done changed from 90 to 100
commit 8f88a51fa5d22e056a70484fd9496b2dee9876b0 Author: Joshua M. Clulow <email@example.com> 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 <firstname.lastname@example.org> Reviewed by: Gordon Ross <email@example.com> Reviewed by: Dan McDonald <firstname.lastname@example.org> Approved by: Richard Lowe <email@example.com>