Page MenuHomeFreeBSD

Enhance the ddb examine (x) command.
AbandonedPublic

Authored by pfg on Apr 28 2016, 10:11 PM.
Tags
None
Referenced Files
Unknown Object (File)
Jan 31 2024, 3:59 PM
Unknown Object (File)
Dec 26 2023, 4:40 AM
Unknown Object (File)
Dec 20 2023, 1:43 AM
Unknown Object (File)
Dec 11 2023, 7:50 AM
Unknown Object (File)
Nov 30 2023, 9:53 AM
Unknown Object (File)
Oct 24 2023, 9:46 AM
Unknown Object (File)
Oct 12 2023, 7:58 AM
Unknown Object (File)
Sep 17 2023, 11:09 AM
Subscribers

Details

Reviewers
jhb
Summary
  • Change x/a to work similar to gdb. The content of the memory is treated as an address, printed symbolically and the address is advanced. This way you can x/a <stack_address> and then just hit return a bunch of times to locate useful data on the stack.
  • Add x/p. The content of the memory is treated as an address and printed as hex.

Obtained from: DragonflyBSD.
I obviated the cosmetic fixes from:
http://gitweb.dragonflybsd.org/dragonfly.git/blobdiff/df0cd41ca2b32c997e05f2ce18551386dda44055..0624d20e86affcd708609cbf9014207537537a72:/sys/ddb/db_examine.c

Test Plan

builds.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 3542
Build 3582: arc lint + arc unit

Event Timeline

pfg retitled this revision from to Enhance the ddb examine (x) command..
pfg updated this object.
pfg edited the test plan for this revision. (Show Details)
pfg added a reviewer: jhb.

Minor indentation change -- for consistency with existing style.

Committed as r298938.
This should let us advance in other changes.
I didn't mention this Differential Revision since there were no comments.

Actually, I ended up reverting this because this revision depends on this DragonFly change

kernel - Change where dump context is saved

  • Save the dump context a little earlier in the panic to improve chances that post-morten kgdb can print the stack backtrace.
  • Use a function union for variable arguments calls from ddb>

http://gitweb.dragonflybsd.org/dragonfly.git/commit/adf0eb4f774a65d9107038289bd52f21cb0d05d3