diff options
author | Tim Newsome <tim@sifive.com> | 2016-06-18 11:07:06 -0700 |
---|---|---|
committer | Tim Newsome <tim@sifive.com> | 2016-07-18 18:51:54 -0700 |
commit | a37f84f7e20f67d50dfc759b3baae1f146df603b (patch) | |
tree | 5878e353b7a3af73081c029baa0a2f8cb126c5b5 /debug | |
parent | 34341c9500c0a0a2520826b6eaf0095c3f9ce9fc (diff) | |
download | riscv-tests-a37f84f7e20f67d50dfc759b3baae1f146df603b.zip riscv-tests-a37f84f7e20f67d50dfc759b3baae1f146df603b.tar.gz riscv-tests-a37f84f7e20f67d50dfc759b3baae1f146df603b.tar.bz2 |
Add test for debuginfo symbols.
Currently fails with 32-bit tools.
Diffstat (limited to 'debug')
-rwxr-xr-x | debug/gdbserver.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/debug/gdbserver.py b/debug/gdbserver.py index f45baed..4e2b0b4 100755 --- a/debug/gdbserver.py +++ b/debug/gdbserver.py @@ -196,6 +196,14 @@ class DebugTest(DeleteServer): def test_exit(self): self.exit() + def test_symbols(self): + self.gdb.b("main") + self.gdb.b("rot13") + output = self.gdb.c() + self.assertIn(", main ", output) + output = self.gdb.c() + self.assertIn(", rot13 ", output) + def test_breakpoint(self): self.gdb.b("rot13") # The breakpoint should be hit exactly 2 times. |