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,889
  • 1
  • 38
  • 51
Bob5421
  • 7,757
  • 14
  • 81
  • 175

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
  • 199,314
  • 34
  • 295
  • 362