Breakpoints
GDB Breakpoint Types
How They Work
Normal Execution
MOV r0, #5
MOV r1, #3
BL printf
With Breakpoint
MOV r0, #5
MOV r1, #3
STOP
BL printf
paused
CPU halts BEFORE
executing breakpoint
instruction
Now you can inspect
GDB Breakpoints
break main
Stop at function
By symbol name
break *0x10000340
Stop at exact addr
By hex address
info break
List all active
breakpoints
continue (c)
Resume running
until next break
delete 1
Remove breakpoint #1