Skip to content

New features for commands and actions #92

Open
@jabraham17

Description

@jabraham17

general

  • cli flag to treat ebreak as PAUSE, otherwise noop
    • this is shorthand for pause if $m[$pc] == ebreak on hart:after_execute
  • add shorthand cli flag --start-paused and -p
  • add a single-step command
  • new set command to set expressions
    • will set lhs = rhs
    • rhs can be any expression
    • lhs must resolve to a register (or PC) or a memory location
  • unify PC to be defined as a register

context

  • default events based on if CLI or interactive
  • execution modes
    • if there are events defined, install as a callback
    • if there are no events defined, execute immediately
  • enforce certain commands trying to execute immediately that cannot, i.e. from CLI, this is an error

new syntax

bugs

future

  • consider adding global variables
    • something like create arg or define arg
    • then it can be used anywhere
  • add a start and stop event
    • in combination with variables, we could now have statistics at runtime
  • consider support for loops? probably dont want
  • .. spread operator to support ranges
  • print ranges of values such as $x0..$x12 or $m[0x989..0x9900]
  • Add ability to remove commands #61

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions