On 25 March 2014 06:36, Andrew MacPherson <[email protected]> wrote:
> When detaching from a debugged process any breakpoint sites need to be
> cleared before detaching so that they don't generate uncaught SIGTRAPs.
> Target::CleanupProcess() seems to do the necessary cleanup so call this from
> the ProcessLinux::WillDetach() method.
>
> If this is the right fix and if it applies to other OSes as well maybe the
> cleanup call should be moved into an earlier Process class in the hierarchy.

I fixed a similar issue on FreeBSD in r201724 by calling
DisableAllBreakpointSites() in ProcessFreeBSD::DoDetach, based on
ProcessGDBRemote::DoDetach.  I think you're right that this should be
moved earlier, probably not in individual Process classes at all.

-Ed
_______________________________________________
lldb-dev mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/lldb-dev

Reply via email to