[all-commits] [llvm/llvm-project] c3cb69: [lldb] Fix data race when setting a breakpoint in ...

Ebuka Ezike via All-commits all-commits at lists.llvm.org
Fri Jul 10 05:17:27 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: c3cb6961edea526dcac75618f611f78618e33b5b
      https://github.com/llvm/llvm-project/commit/c3cb6961edea526dcac75618f611f78618e33b5b
  Author: Ebuka Ezike <e_ezike at apple.com>
  Date:   2026-07-10 (Fri, 10 Jul 2026)

  Changed paths:
    M lldb/source/Breakpoint/BreakpointResolverFileLine.cpp

  Log Message:
  -----------
  [lldb] Fix data race when setting a breakpoint in mulitple debuggers. (#208485)

When you have two SBDebugger with a target for the same `a.out` and you
try to add a breakpoint at the same location.

The data race happens in `CompileUnit::GetSupportFiles()` one debugger
sees the there is no support files. it sets the parsed flag and parses
the support file. The other debugger sees the parsed flag is set and
will not set the breakpoint since the support file is still parsing and
and will assume the symbol file does not have support files.



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