[llvm-bugs] [Bug 51463] New: llc -O0 generates incorrect debug information when compiling IR containing llvm.dbg.value
via llvm-bugs
llvm-bugs at lists.llvm.org
Thu Aug 12 14:44:32 PDT 2021
https://bugs.llvm.org/show_bug.cgi?id=51463
Bug ID: 51463
Summary: llc -O0 generates incorrect debug information when
compiling IR containing llvm.dbg.value
Product: new-bugs
Version: trunk
Hardware: PC
OS: Linux
Status: NEW
Severity: enhancement
Priority: P
Component: new bugs
Assignee: unassignedbugs at nondot.org
Reporter: dwight.guth at runtimeverification.com
CC: htmldeveloper at gmail.com, llvm-bugs at lists.llvm.org
Created attachment 25128
--> https://bugs.llvm.org/attachment.cgi?id=25128&action=edit
minimized llvm IR
If you take the attached LLVM IR containing debug information and try to
compile it into an executable using `llc -O0`, GDB (tested using version 9.2)
will not be able to report the value of `x` if you are stopped at a breakpoint
on the `foo` function. This seems to have worked as recently as llvm 11. This
is on an AMD64 machine. I can reproduce this on the main branch of llvm.
--
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/20210812/67391fa0/attachment-0001.html>
More information about the llvm-bugs
mailing list