Project

General

Profile

Feature #5628

mdb ::regs could print registers from a ucontext

Added by Robert Mustacchi almost 6 years ago. Updated almost 6 years ago.

Status:
Closed
Priority:
Normal
Category:
mdb - modular debugger
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.

#1

Updated by Electric Monk almost 6 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>

Also available in: Atom PDF