[Lldb-commits] [lldb] [lldb] add a marker before skipped frames (PR #167550)

Charles Zablit via lldb-commits lldb-commits at lists.llvm.org
Fri Jan 9 10:28:54 PST 2026


================
@@ -49,6 +49,22 @@ class StackFrameList : public std::enable_shared_from_this<StackFrameList> {
   /// Resets the selected frame index of this object.
   void ClearSelectedFrameIndex();
 
+  /// Returns \p true if the next frame is hidden.
+  bool IsNextFrameHidden(lldb_private::StackFrame &frame);
+
+  /// Returns \p true if the previous frame is hidden.
+  bool IsPreviousFrameHidden(lldb_private::StackFrame &frame);
+
+  /// Returns the stack frame marker depending on if \p frame_sp:
+  /// @li is selected: *
+  /// @li is the first non hidden frame: ﹍
+  /// @li is the last non hidden frame: ﹉
+  ///
+  /// If the terminal does not support Unicode rendering, the hidden frame
+  /// markers are replaced with whitespaces.
+  std::wstring FrameMarker(lldb::StackFrameSP frame_sp,
----------------
charles-zablit wrote:

I thought it was necessary since we were using literals with non ascii characters in them. I did not know about the `u8` specifier.

I have removed the use of `std::wstring`.

https://github.com/llvm/llvm-project/pull/167550


More information about the lldb-commits mailing list