0

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...

ysdx
  • 8,261
  • 1
  • 35
  • 46
Bob5421
  • 6,717
  • 12
  • 63
  • 144

1 Answers1

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
  • 182,696
  • 29
  • 267
  • 329