[all-commits] [llvm/llvm-project] f28a49: [lldb] Support specifying a language for breakpoin...

Jonas Devlieghere via All-commits all-commits at lists.llvm.org
Thu Jul 10 15:24:48 PDT 2025


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

  Changed paths:
    M lldb/include/lldb/Breakpoint/Breakpoint.h
    M lldb/include/lldb/Breakpoint/BreakpointLocation.h
    M lldb/include/lldb/Breakpoint/BreakpointOptions.h
    A lldb/include/lldb/Breakpoint/StopCondition.h
    M lldb/source/API/SBBreakpoint.cpp
    M lldb/source/API/SBBreakpointLocation.cpp
    M lldb/source/API/SBBreakpointName.cpp
    M lldb/source/Breakpoint/Breakpoint.cpp
    M lldb/source/Breakpoint/BreakpointLocation.cpp
    M lldb/source/Breakpoint/BreakpointOptions.cpp
    M lldb/source/Commands/CommandObjectBreakpoint.cpp
    M lldb/source/Commands/Options.td
    M lldb/source/Target/StopInfo.cpp
    M lldb/test/API/functionalities/breakpoint/breakpoint_conditions/TestBreakpointConditions.py
    A lldb/test/Shell/Breakpoint/condition-lang.test

  Log Message:
  -----------
  [lldb] Support specifying a language for breakpoint conditions (#147603)

LLDB breakpoint conditions take an expression that's evaluated using the
language of the code where the breakpoint is located. Users have asked
to have an option to tell it to evaluate the expression in a specific
language.

This is feature is especially helpful for Swift, for example for a
condition based on the value in memory at an offset from a register.
Such a condition is pretty difficult to write in Swift, but easy in C.

This PR adds a new argument (-Y) to specify the language of the
condition expression. We can't reuse the current -L option, since you
might want to break on only Swift symbols, but run a C expression there
as per the example above.

rdar://146119507



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