Project

General

Profile

Actions

Bug #3698

open

Want mdb to programmatically stackwalk

Added by Rich Ercolani over 9 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
-
Start date:
2013-04-05
Due date:
% Done:

0%

Estimated time:
Difficulty:
Medium
Tags:
needs-triage
Gerrit CR:

Description

Given a trace of, for example:

dld_fini_ops+0x1a(ffffffffc03a1320)
stubs_common_code+0x51()
mac_fini_ops+0x15(ffffffffc03a1320)
_init+0xb1()
modinstall+0x116(ffffff21fe756798)
mod_hold_installed_mod+0x83(ffffff21eb81ea80, 0, 0, ffffff00f4f7ae38)
modctl_modload+0x75(0, fffffd7fffdff910, fffffd7fffdff90c)
modctl+0x46e(0, 0, fffffd7fffdff910, fffffd7fffdff90c, 7f7f7f7f7f7f7f7f, 8080808080808080)
sys_syscall+0x17a()

I'd like to be able to do the equivalent of gdb's "up"/"down" and walk up and down stack context, printing local-scope variables and registers [if saved] without having to manually read the ASM and determine positions.

This alone is not difficult, as an exercise - implementing it in mdb may be, I haven't looked at doing so yet.

No data to display

Actions

Also available in: Atom PDF