学习让我快乐

争于世, 不争于势;简洁, 高效, 赏心悦目

Use GDB in production is risky

The GDB use ptrace system call to implement breakpoint, when we use ‘b’ command to create a breakpoint in GDB, GDB will calculate the address of instruction at which the process(attached by gdb) sh...