[Lldb-commits] [PATCH] D18886: Reset continue_after_async only if neither SIGINIT nor SIGSTOP received

Pavel Labath via lldb-commits lldb-commits at lists.llvm.org
Fri Apr 8 01:44:35 PDT 2016

labath added a subscriber: labath.
labath added a comment.

Does this fix an existing test or is a new issue? If it's new (it sounds like it is, as I don't see any test failures), could you also add a test for this. It shouldn't be too difficult to write one... Would something like this:

  lldbutil.expect_state_changes(self,dbg.GetListener(), [eStateRunning])
  target.BreakpointCreateBySourceRegex("// some code which will not get executed by the inferior")
  while dbg.GetListener().WaitForEvent(2, event):
    if SBProcess.GetStateFromEvent(event) == eStateStopped and SBProcess.GetRestartedFromEvent(state):
    if SBProcess.GetStateFromEvent(event) == eStateRunning:
    self.fail("Setting a breakpoint generated an unexpected event: %s"%SBDebugger.StateAsCString(SBProcess.GetStateFromEvent(event)));

do the trick?


More information about the lldb-commits mailing list