Skip to content

Commit

Permalink
Add a missing Mutex Locker in ResetCurrentInlinedDepth
Browse files Browse the repository at this point in the history
Summary: This function reads m_frames, so it needs to lock the
mutex like all other function that access m_frames.
Found using AddressSanitizer.

Reviewers: jingham, clayborg

Subscribers: lldb-commits

Differential Revision: http://reviews.llvm.org/D13638

llvm-svn: 250493
  • Loading branch information
Keno committed Oct 16, 2015
1 parent b1d469c commit 47db4a2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lldb/source/Target/StackFrameList.cpp
Expand Up @@ -105,6 +105,8 @@ StackFrameList::GetCurrentInlinedDepth ()
void
StackFrameList::ResetCurrentInlinedDepth ()
{
Mutex::Locker locker (m_mutex);

if (m_show_inlined_frames)
{
GetFramesUpTo(0);
Expand Down

0 comments on commit 47db4a2

Please sign in to comment.