how GDB use ptrace to return from a function

Joel Brobecker brobecker@adacore.com
Sat Nov 18 04:03:00 GMT 2017


> what break point events are common for X86?

IIRC, the breakpoint instruction on x86 is the int3 instruction.
It should generate a SIGTRAP upon execution, just like any user-
inserted breakpoints.

-- 
Joel



More information about the Gdb mailing list