@@ -15,6 +15,7 @@ def report(cond, msg):
print ("PASS: %s" % (msg))
else:
print ("FAIL: %s" % (msg))
+ global failcount
failcount += 1
@@ -33,6 +34,7 @@ def check_break(sym_name):
bp = gdb.Breakpoint(sym_name)
gdb.execute("c")
+ gdb.execute("c 100")
# hopefully we came back
end_pc = gdb.parse_and_eval('$pc')
@@ -138,12 +140,12 @@ def run_test():
# Can't set this up until we are in the kernel proper
# if we make it to run_init_process we've over-run and
# one of the tests failed
- print ("Setup catch-all for run_init_process")
- cbp = CatchBreakpoint("run_init_process")
- cpb2 = CatchBreakpoint("try_to_run_init_process")
+ #print ("Setup catch-all for run_init_process")
+ #cbp = CatchBreakpoint("run_init_process")
+ #cpb2 = CatchBreakpoint("try_to_run_init_process")
print ("Checking Normal breakpoint works")
- break_ok = check_break("wait_for_completion")
+ break_ok = check_break("SyS_execve")
report(break_ok, "break @ wait_for_completion")
print ("Checking watchpoint works")