[Lldb-commits] [PATCH] D121967: [LLDB][NativePDB] Create inline function decls

Zequan Wu via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Thu Mar 31 11:14:59 PDT 2022


zequanwu added inline comments.


================
Comment at: lldb/test/Shell/SymbolFile/NativePDB/inline_sites_live.cpp:7
+// RUN:     %p/Inputs/inline_sites_live.lldbinit 2>&1 | FileCheck %s
+
+inline int bar(int bar_param) {
----------------
labath wrote:
> ```
> void __attribute__((optnone)) use(int) {}
> 
> void __attribute__((always_inline)) bar(int param) {
>   use(param); // BP_bar
> }
> 
> void __attribute__((always_inline)) foo(int param) {
>   int local = param+1;
>   bar(local);
>   use(param); // BP_foo
>   use(local);
> }
> 
> int main(int argc) {
>   foo(argc);
> }
> ```
> 
I moved the line `// BP_foo`  to the next line, because there are some inaccuracy in the line table with inlined info. I'll fix it later.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D121967/new/

https://reviews.llvm.org/D121967



More information about the lldb-commits mailing list