https://bugs.llvm.org/show_bug.cgi?id=48377
Bug ID: 48377
Summary: [codeview] Inline sites in PDB sometimes don't contain
code offset
Product: libraries
Version: trunk
Hardware: PC
OS: All
Status: NEW
Severity: enhancement
Priority: P
Component: DebugInfo
Assignee: unassignedb...@nondot.org
Reporter: akhu...@google.com
CC: jdevliegh...@apple.com, keith.wal...@arm.com,
llvm-bugs@lists.llvm.org,
paul_robin...@playstation.sony.com
Some inline sites don't have starting code offsets and thus aren't found by
llvm-symbolizer.
to repro:
$ cat t.cpp
int main(int argc, char *argv[]) {
auto f = [](int x) {
return x * 100;
};
return f(argc);
}
$ clang -cc1 -triple x86_64-windows-msvc -emit-obj -gcodeview
-debug-info-kind=line-tables-only -Os -o t.obj t.cpp
$ lld-link t.obj -debug -entry:main -pdb:t.pdb
$ llvm-pdbutil dump -symbols t.pdb | grep -A3 "S_INLINESITE "
212 | S_INLINESITE [size = 20]
inlinee = 0x1000 (main(int, char **)::(anonymous c...), parent =
136, end = 232
0602 line 1 (+1)
0403 code end 0x3 (+0x3)
$ llvm-symbolizer --obj=t.exe --relative-address 0x1000
main
??:0:0
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs