Checkout
Start free trial
Take Naologic for a spin today, no credit card needed and no obligations.
Start free trial
Question

Gdb - How does GDB work?

Answer

GDB operates using a system call known as ptrace, short for 'process trace'. This allows GDB to monitor and control another process's execution, and to inspect and modify the process's memory and registers. Breakpoints are created by substituting a specific instruction at a memory address with a different, special instruction.