[Lldb-commits] [lldb] [lldb][Format] Fix missing inlined function names in frame formatting. (PR #78494)

Jonas Devlieghere via lldb-commits lldb-commits at lists.llvm.org
Wed Jan 17 20:55:14 PST 2024


================
@@ -1093,6 +1093,20 @@ static void PrettyPrintFunctionNameWithArgs(Stream &out_stream,
     out_stream.PutChar(')');
 }
 
+static void FormatInlinedBlock(Stream &out_stream, Block *block) {
+  if (!block)
+    return;
+  Block *inline_block = block->GetContainingInlinedBlock();
+  if (inline_block) {
+    const InlineFunctionInfo *inline_info =
+        inline_block->GetInlinedFunctionInfo();
+    if (inline_info) {
+      out_stream.PutCString(" [inlined] ");
+      inline_info->GetName().Dump(&out_stream);
+    }
----------------
JDevlieghere wrote:

```
if (const InlineFunctionInfo *inline_info = sc->block->GetInlinedFunctionInfo()) {
  ...
}
```

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


More information about the lldb-commits mailing list