diff options
Diffstat (limited to 'debug/gdbserver.py')
-rwxr-xr-x | debug/gdbserver.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/debug/gdbserver.py b/debug/gdbserver.py index d236a97..000b52c 100755 --- a/debug/gdbserver.py +++ b/debug/gdbserver.py @@ -271,6 +271,16 @@ class DebugTest(GdbTest): assertIn("_exit", output) assertEqual(self.gdb.p("status"), expected_result) +class DebugCompareSections(DebugTest): + def test(self): + output = self.gdb.command("compare-sections") + matched = 0 + for line in output.splitlines(): + if line.startswith("Section"): + assert line.endswith("matched.") + matched += 1 + assertGreater(matched, 1) + class DebugFunctionCall(DebugTest): def test(self): self.gdb.b("main:start") |