[llvm-bugs] [Bug 46007] Wrong debug info generated at -O1 (-O0/O2/O3 are correct)

via llvm-bugs llvm-bugs at lists.llvm.org
Mon Jun 8 01:59:43 PDT 2020


https://bugs.llvm.org/show_bug.cgi?id=46007

Orlando Cazalet-Hyams <orlando.hyams at sony.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Fixed By Commit(s)|                            |bddd2888264492a6deb0d447ee6
                   |                            |ac042d3fb44e4
             Status|NEW                         |RESOLVED
         Resolution|---                         |DUPLICATE

--- Comment #5 from Orlando Cazalet-Hyams <orlando.hyams at sony.com> ---
AFAICT this is a duplicate of PR45944 and is fixed with D80519 (commit
bddd2888264492a6deb0d447ee6ac042d3fb44e4).

Following the repro steps with D80519, instead of seeing an incorrect value for
argc, I see:

* thread #1, name = 'a.out', stop reason = breakpoint 1.1
    frame #0: 0x000000000040049e new.o`main(argc=<unavailable>,
argv=<unavailable>) at small.c:8:3
   5    int main(int argc, char **argv) {
   6      char c[10];
   7      foo(c);
-> 8      return 0;
   9    }
(lldb) p argc
error: Couldn't materialize: couldn't get the value of variable argc: Could not
evaluate DW_OP_GNU_entry_value.

*** This bug has been marked as a duplicate of bug 45944 ***

-- 
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/20200608/da93e47a/attachment.html>


More information about the llvm-bugs mailing list