diff options
| author | Tim Newsome <tim@sifive.com> | 2018-10-08 15:47:09 -0700 |
|---|---|---|
| committer | Tim Newsome <tim@sifive.com> | 2018-10-29 12:54:25 -0700 |
| commit | 5ee2425151112bd7d17afc6321a1fbf9efd21116 (patch) | |
| tree | 1643ab27bef7982dfc1bb40a68218873bb337f32 /debug/testlib.py | |
| parent | ee6c720e4db50b73dd8f45c70a6868b88cd4a8b1 (diff) | |
| download | riscv-tests-5ee2425151112bd7d17afc6321a1fbf9efd21116.zip riscv-tests-5ee2425151112bd7d17afc6321a1fbf9efd21116.tar.gz riscv-tests-5ee2425151112bd7d17afc6321a1fbf9efd21116.tar.bz2 | |
Tweak debug tests to run out of flash.
Not all tests pass when run out of flash yet, but it's getting a lot
closer. The ones still failing on HiFive1-flash are: DebugSymbols,
Hwbp2, InstantHaltTest, TriggerDmode, TriggerLoadAddressInstant, and
TriggerStoreAddressInstant.
Diffstat (limited to 'debug/testlib.py')
| -rw-r--r-- | debug/testlib.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/debug/testlib.py b/debug/testlib.py index d278692..fa79abe 100644 --- a/debug/testlib.py +++ b/debug/testlib.py @@ -579,7 +579,9 @@ class Gdb(object): output = self.command("b %s" % location, ops=5) assert "not defined" not in output assert "Breakpoint" in output - return output + m = re.search(r"Breakpoint (\d+),? ", output) + assert m, output + return int(m.group(1)) def hbreak(self, location): output = self.command("hbreak %s" % location, ops=5) |
