command = "target stop-hook add -G 1 -P stop_hook.stop_handler -k increment -v 5 -n step_out_of_me"
self.interp.HandleCommand(command, result)
- self.assertTrue(result.Succeeded, "Set the target stop hook")
+ self.assertTrue(result.Succeeded(), "Set the target stop hook")
# First run to main. If we go straight to the first stop hook hit,
# run_to_source_breakpoint will fail because we aren't at original breakpoint
command += specifier
self.interp.HandleCommand(command, result)
- self.assertTrue(result.Succeeded, "Set the target stop hook")
+ self.assertTrue(result.Succeeded(), "Set the target stop hook")
(target, process, thread, bkpt) = lldbutil.run_to_source_breakpoint(self,
"Set a breakpoint here", self.main_source_file)
# At this point we've hit our stop hook so we should have run our expression,
interp = self.dbg.GetCommandInterpreter()
result = lldb.SBCommandReturnObject()
interp.HandleCommand("target stop-hook add -o 'expr g_var++'", result)
- self.assertTrue(result.Succeeded, "Set the target stop hook")
+ self.assertTrue(result.Succeeded(), "Set the target stop hook")
thread.StepOut()
var = target.FindFirstGlobalVariable("g_var")
self.assertTrue(var.IsValid())
interp = self.dbg.GetCommandInterpreter()
result = lldb.SBCommandReturnObject()
interp.HandleCommand("target stop-hook add -o 'expr g_var++'", result)
- self.assertTrue(result.Succeeded, "Set the target stop hook")
+ self.assertTrue(result.Succeeded(), "Set the target stop hook")
(target, process, thread, first_bkpt) = lldbutil.run_to_source_breakpoint(self,
"Set a breakpoint here", self.main_source_file)
result = lldb.SBCommandReturnObject()
interp.HandleCommand("settings set target.process.run-all-threads true", result)
- self.assertTrue(result.Succeeded, "setting run-all-threads works.")
+ self.assertTrue(result.Succeeded(), "setting run-all-threads works.")
self.run_step(False, None, thread_id)