[all-commits] [llvm/llvm-project] 41a53c: [lldb/Target] Add BorrowedStackFrame and make Stac...

Med Ismail Bennani via All-commits all-commits at lists.llvm.org
Tue Dec 2 10:41:25 PST 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 41a53c0a23ee3268c930fa67cc0a39f18c49efc4
      https://github.com/llvm/llvm-project/commit/41a53c0a23ee3268c930fa67cc0a39f18c49efc4
  Author: Med Ismail Bennani <ismail at bennani.ma>
  Date:   2025-12-02 (Tue, 02 Dec 2025)

  Changed paths:
    M lldb/include/lldb/Core/FormatEntity.h
    A lldb/include/lldb/Target/BorrowedStackFrame.h
    M lldb/include/lldb/Target/StackFrame.h
    M lldb/source/Core/FormatEntity.cpp
    M lldb/source/Plugins/Process/scripted/ScriptedFrame.cpp
    M lldb/source/Plugins/Process/scripted/ScriptedFrame.h
    A lldb/source/Target/BorrowedStackFrame.cpp
    M lldb/source/Target/CMakeLists.txt
    M lldb/source/Target/StackFrame.cpp

  Log Message:
  -----------
  [lldb/Target] Add BorrowedStackFrame and make StackFrame methods virtual (#170191)

This change makes StackFrame methods virtual to enable subclass
overrides and introduces BorrowedStackFrame, a wrapper that presents an
existing StackFrame with a different frame index.

This enables creating synthetic frame views or renumbering frames
without copying the underlying frame data, which is useful for frame
manipulation scenarios.

This also adds a new borrowed-info format entity to show what was the
original frame index of the borrowed frame.

Signed-off-by: Med Ismail Bennani <ismail at bennani.ma>



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