Skip to content

software breakpoints #7

@gurcei

Description

@gurcei

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions