Thursday, August 4, 2011

Set Breakpoints in arm-elf-gdb

Breakpoints allow you to run your program up to a desired point.

Set Breakpoint

In arm-elf-gdb, to set a breakpoint use the break command, which can be abbreviated to just b, followed by a label, address, or line number in the .s file. 
Examples
break _start
b main
b 0x8004
b 17 (set breakpoint at line 17 of the original assembly file)
Check Breakpoints


To find all breakpoints, type info breakpoint. Again, abbreviations can be used to execute the equivalent i b

Run Until Breakpoint is Reached


The command continue will run the program until the next breakpoint. c will perform the same function.

No comments:

Post a Comment