Skip to content

Commit

Permalink
Look for \bmain\b instead of ' main '. (riscv-software-src#237)
Browse files Browse the repository at this point in the history
  • Loading branch information
timsifive authored Feb 11, 2020
1 parent 0796441 commit 67af8d6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions debug/gdbserver.py
Original file line number Diff line number Diff line change
Expand Up @@ -1288,14 +1288,14 @@ def setup(self):
self.gdb.load()
self.gdb.b("main")
output = self.gdb.c()
assertIn(" main ", output)
assertRegex(output, r"\bmain\b")

def test_translation(self):
self.gdb.b("error")
self.gdb.b("handle_trap")
self.gdb.b("main:active")
output = self.gdb.c()
assertIn(" main ", output)
assertRegex(output, r"\bmain\b")
assertEqual(0xdeadbeef, self.gdb.p("physical[0]"))
assertEqual(0x55667788, self.gdb.p("physical[1]"))
assertEqual(0xdeadbeef, self.gdb.p("virtual[0]"))
Expand Down

0 comments on commit 67af8d6

Please sign in to comment.