Let the app auto-step through code and stop upon hitting one of a list of software breakpoints the user has added.
For software breakpoint support:
- the system must be in trace mode, as set by the "t1" raw command.
- use the "break {addr}" command for adding software breakpoints
- use "breaks" to list all breakpoints
- use "bdel {breakno}" to delete a breakpoint
- use "cont" to let the app do its auto-step mode
- let CTRL-C break out of the "cont" loop
As for the hardware breakpoint support, I'll consider doing it this way:
- for the hardware breakpoint to trigger, the system must not be in trace mode, so assure it is turned off with the "t0" raw command. Once the hardware break hits, the system will automatically pause and switch to trace mode (t1).
- use the "hbreak {addr}" command for setting the single hardware breakpoint
- use "hbreaks" to list the current hardware breakpoint (there's only one)
- use "hbreak" or "hbdel" to delete it
Let the app auto-step through code and stop upon hitting one of a list of software breakpoints the user has added.
For software breakpoint support:
As for the hardware breakpoint support, I'll consider doing it this way: