Lock the owners mutex in the BreakpointSite before updating the hit
authorJim Ingham <jingham@apple.com>
Wed, 29 Jul 2015 00:40:36 +0000 (00:40 +0000)
committerJim Ingham <jingham@apple.com>
Wed, 29 Jul 2015 00:40:36 +0000 (00:40 +0000)
commitff244c1d9754b0632401a2bd36612afb7392cf44
tree2803a1d2723fc5020a6535a467dbb1e1226b7174
parent8039dae26d4f0523c19d3f17a8b19faa7c9d5141
Lock the owners mutex in the BreakpointSite before updating the hit
counts.  If you delete a breakpoint belonging to a site just as you are
processing a hit on that site, you could cause the BreakpointSite loop to
access a now deleted location.

<rdar://problem/19310323>

llvm-svn: 243507
lldb/source/Breakpoint/BreakpointSite.cpp