-
Notifications
You must be signed in to change notification settings - Fork 148
Open
Description
Currently it's achievable by setting a breakpoint condition like "(int)thread.gettid() == 5"
, but debuggers like LLDB support directly specifying thread id(s) for a breakpoint, which is much faster then evaluating the condition expression every time the breakpoint hits:
Syntax: breakpoint modify <cmd-options> [<breakpt-id | breakpt-id-list>]
-t <thread-id> ( --thread-id <thread-id> )
The breakpoint stops only for the thread whose TID matches this argument. The token
'current' resolves to the current thread's ID.
Jorenar and DrSergei
Metadata
Metadata
Assignees
Labels
No labels