[Lldb-commits] [lldb] [lldb] Support stepping through C++ thunks (PR #127419)

Med Ismail Bennani via lldb-commits lldb-commits at lists.llvm.org
Mon Feb 17 11:30:49 PST 2025


================
@@ -76,6 +77,18 @@ bool ThreadPlanShouldStopHere::DefaultShouldStopHereCallback(
     }
   }
 
+  // Check whether the frame we are in is a language runtime thunk, only for
+  // step out:
+  if (operation == eFrameCompareOlder) {
+    Symbol *symbol = frame->GetSymbolContext(eSymbolContextSymbol).symbol;
+    if (symbol) {
----------------
medismailben wrote:

nit:

```suggestion
    if (Symbol *symbol = frame->GetSymbolContext(eSymbolContextSymbol).symbol) {
```

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


More information about the lldb-commits mailing list