Page MenuHomeFreeBSD

ddb: Enable 'thread <address>'
ClosedPublic

Authored by cem on Aug 30 2018, 10:56 PM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Oct 8, 7:37 AM
Unknown Object (File)
Thu, Oct 2, 6:43 AM
Unknown Object (File)
Thu, Oct 2, 4:44 AM
Unknown Object (File)
Sat, Sep 20, 7:36 AM
Unknown Object (File)
Wed, Sep 17, 9:49 AM
Unknown Object (File)
Sep 7 2025, 1:17 PM
Unknown Object (File)
Aug 27 2025, 4:12 AM
Unknown Object (File)
Aug 25 2025, 10:25 PM
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

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

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.