[llvm-bugs] [Bug 38991] New: llvm-dwarfdump doesn't dump contents of debug_loc.dwo

via llvm-bugs llvm-bugs at lists.llvm.org
Tue Sep 18 17:59:12 PDT 2018


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

            Bug ID: 38991
           Summary: llvm-dwarfdump doesn't dump contents of debug_loc.dwo
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: DebugInfo
          Assignee: unassignedbugs at nondot.org
          Reporter: dblaikie at gmail.com
                CC: llvm-bugs at lists.llvm.org

take a .dwo file and llvm-dwarfdump -debug-loc and it won't print the
debug_loc.dwo section. Even if you also pass -debug-info to ensure that it
dumps both, or that the info section is parsed so that the loc section can be
parsed (if it's contingent like that - as some of the sections are). Even
though this works with a .o file, even with only -debug-loc.

For a short example with a loc list:

  void a(int i) { asm("" : : : "rdi"); }

-- 
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/20180919/379bc364/attachment-0001.html>


More information about the llvm-bugs mailing list