Page MenuHomeFreeBSD

ddb: Enable 'thread <address>'
ClosedPublic

Authored by cem on Aug 30 2018, 10:56 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Jan 18, 10:05 PM
Unknown Object (File)
Sat, Jan 18, 5:07 PM
Unknown Object (File)
Sun, Jan 12, 5:40 PM
Unknown Object (File)
Thu, Jan 9, 8:10 PM
Unknown Object (File)
Dec 17 2024, 8:54 AM
Unknown Object (File)
Dec 7 2024, 4:34 AM
Unknown Object (File)
Nov 21 2024, 3:21 PM
Unknown Object (File)
Oct 10 2024, 10:25 AM
Subscribers

Details

Summary

Prior to this change, the 'thread' command (to switch the debugger to another
thread) only accepts decimal-encoded tids. This is a minor nuisance and
sometimes stumbling block.

Use the same parsing logic as 'show thread <arg>' to enable 'thread' to accept
hex-encoded thread pointers in addition to decimal-encoded tids.

Test Plan

Untested other than compile. Will confirm before committing.

Diff Detail

Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 19337
Build 18942: arc lint + arc unit

Event Timeline

This revision is now accepted and ready to land.Aug 31 2018, 7:59 AM

Does ddb.4 need to be updated?

I think man page does need to be updated as markj said.

Document 'thread' (entirely absent) and 'show thread' tid behavior.

This revision now requires review to proceed.Sep 1 2018, 4:19 AM
This revision is now accepted and ready to land.Sep 1 2018, 5:12 AM
This revision was automatically updated to reflect the committed changes.