Actions
Feature #5628
closedmdb ::regs could print registers from a ucontext
Start date:
2015-02-15
Due date:
% Done:
100%
Estimated time:
Difficulty:
Medium
Tags:
Gerrit CR:
Description
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 7 years ago
- Status changed from New to Closed
- % Done changed from 90 to 100
git commit 8f88a51fa5d22e056a70484fd9496b2dee9876b0
commit 8f88a51fa5d22e056a70484fd9496b2dee9876b0 Author: Joshua M. Clulow <jmc@joyent.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 <tj.fontaine@joyent.com> Reviewed by: Gordon Ross <gwr@nexenta.com> Reviewed by: Dan McDonald <danmcd@omniti.com> Approved by: Richard Lowe <richlowe@richlowe.net>
Actions