[lldb-dev] [Bug 28742] New: Make Process::StopForDestroyOrDetach handle interrupting RunThreadPlan more robustly

via lldb-dev lldb-dev at lists.llvm.org
Wed Jul 27 15:29:12 PDT 2016


https://llvm.org/bugs/show_bug.cgi?id=28742

            Bug ID: 28742
           Summary: Make Process::StopForDestroyOrDetach handle
                    interrupting RunThreadPlan more robustly
           Product: lldb
           Version: unspecified
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: All Bugs
          Assignee: lldb-dev at lists.llvm.org
          Reporter: jingham at apple.com
                CC: llvm-bugs at lists.llvm.org
    Classification: Unclassified

See the discussion in commit r276795.  As Pavel said there:

This case is fine. The tricky part is the opposite:
- we check the private state, see that it is stopped and decide that
we have nothing to do
- meanwhile, the private state flips back to running (e.g. because it
was just temporarily stopped while it was stepping over a breakpoint)
- RunThreadPlan carries on running oblivious to the fact that someone
tried to interrupt it
- process does not stop

So the Process has to have a way to flag that RunThreadPlan should interrupt
it's work.    This is a little tricky because, if you need to send a signal to
interrupt but the process stops with the signal pending, you will also need to
pull off that signal or when you detach it will go to the process and likely
kill it.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/lldb-dev/attachments/20160727/a46e38e0/attachment.html>


More information about the lldb-dev mailing list