================
@@ -53,8 +53,7 @@ InstrumentationRuntimeStopInfo::GetSuggestedStackFrameIndex(
   // case we somehow ended up looking at an infinite recursion.
   constexpr size_t max_stack_depth = 128;
 
-  // Start at parent frame.
-  size_t stack_idx = 1;
+  size_t stack_idx = 0;
----------------
da-viper wrote:

We can compile ubsan as static or shared library on linux, the default is 
static.

By default (with static ubsan) so we don't have a shared `libclang_rt.ubsan*` 
to the stopped symbol will be on 
`__ubsan_on_report` but the `InstrumentationRuntimeStopInfo` sets it to the 
parent frame. 

https://github.com/llvm/llvm-project/pull/177964
_______________________________________________
lldb-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Reply via email to