Bob5421
Bob5421

Reputation: 9063

How does gdb manage thread-specific breakpoints

When gdb puts a breakpoint in a Target process, it replaces one instruction by int3. I am wondering how it works when this breakpoint should ne active for a specific thread...

Upvotes: 0

Views: 376

Answers (1)

Employed Russian
Employed Russian

Reputation: 213375

Copying from this answer:

For a thread-specific breakpoint, the debugger inserts a process-wide breakpoint, then simply immediately resumes any thread which hits the breakpoint, unless the thread is the specific one that you wanted to stop.

Upvotes: 1

Related Questions