| commit | 3ee12ef26ed534af3d0c85f88df7b06db037bfe3 | [log] [tgz] |
|---|---|---|
| author | Jim Ingham <jingham@apple.com> | Wed May 30 02:19:25 2012 +0000 |
| committer | Jim Ingham <jingham@apple.com> | Wed May 30 02:19:25 2012 +0000 |
| tree | 9d46961f3981c27e927926a4ea7d5a2c2b0b6ba7 | |
| parent | 13586ab6d8a1c9f373315a70c384f67089c2371e [diff] |
We were accessing the ModuleList in the target without locking it for tasks like setting breakpoints. That's dangerous, since while we are setting a breakpoint, the target might hit the dyld load notification, and start removing modules from the list. This change adds a GetMutex accessor to the ModuleList class, and uses it whenever we are accessing the target's ModuleList (as returned by GetImages().) <rdar://problem/11552372> llvm-svn: 157668