From: Tim Newsome Date: Sat, 18 Jun 2016 18:07:06 +0000 (-0700) Subject: Add test for debuginfo symbols. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=a37f84f7e20f67d50dfc759b3baae1f146df603b;p=riscv-tests.git Add test for debuginfo symbols. Currently fails with 32-bit tools. --- 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.