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...
Asked
Active
Viewed 291 times
1 Answers
1
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.

Community
- 1
- 1

Employed Russian
- 199,314
- 34
- 295
- 362