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
Check Breakpointsbreak _startb mainb 0x8004b 17 (set breakpoint at line 17 of the original assembly file)
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