Skip to content

Commit

Permalink
Merge pull request #575 from en-sc/en-sc/reserve-trigger
Browse files Browse the repository at this point in the history
[debug] Reserve the trigger in `HwbpManual`
  • Loading branch information
en-sc authored Sep 5, 2024
2 parents 2f97bab + 8cc4918 commit cc3b0f0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions debug/gdbserver.py
Original file line number Diff line number Diff line change
Expand Up @@ -711,6 +711,8 @@ def test(self):
self.gdb.p("$tdata1=0")
tselect += 1

self.gdb.command(f"monitor riscv reserve_trigger {tselect}")

# The breakpoint should be hit exactly 2 times.
for _ in range(2):
output = self.gdb.c(ops=2)
Expand Down

0 comments on commit cc3b0f0

Please sign in to comment.