[all-commits] [llvm/llvm-project] e76780: [lldb] Protect the selected frame idx in StackFram...

Jonas Devlieghere via All-commits all-commits at lists.llvm.org
Fri Jul 25 18:03:31 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: e76780b9da76295f88cb24817e9384b88e6416dc
      https://github.com/llvm/llvm-project/commit/e76780b9da76295f88cb24817e9384b88e6416dc
  Author: Jonas Devlieghere <jonas at devlieghere.com>
  Date:   2025-07-25 (Fri, 25 Jul 2025)

  Changed paths:
    M lldb/include/lldb/Target/StackFrameList.h
    M lldb/source/Target/StackFrameList.cpp

  Log Message:
  -----------
  [lldb] Protect the selected frame idx in StackFrameList (#150718)

Protected m_selected_frame_idx with a mutex. To avoid deadlocks, always acquire m_selected_frame_mutex after m_list_mutex. I'm using a recursive mutex because GetSelectedFrameIndex may indirectly call SetSelectedFrame.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list