[llvm-bugs] [Bug 48377] New: [codeview] Inline sites in PDB sometimes don't contain code offset
via llvm-bugs
llvm-bugs at lists.llvm.org
Thu Dec 3 09:04:57 PST 2020
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: unassignedbugs at nondot.org
Reporter: akhuang at google.com
CC: jdevlieghere at apple.com, keith.walker at arm.com,
llvm-bugs at lists.llvm.org,
paul_robinson at 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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20201203/cf8e5f36/attachment.html>
More information about the llvm-bugs
mailing list