[llvm-bugs] [Bug 44261] New: Print value to adjust by rather than final line value for verbose DW_LNS_advance_line

via llvm-bugs llvm-bugs at lists.llvm.org
Tue Dec 10 06:14:43 PST 2019


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

            Bug ID: 44261
           Summary: Print value to adjust by rather than final line value
                    for verbose DW_LNS_advance_line
           Product: tools
           Version: trunk
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: llvm-dwarfdump
          Assignee: unassignedbugs at nondot.org
          Reporter: jh7370.2008 at my.bristol.ac.uk
                CC: llvm-bugs at lists.llvm.org

Currently, when llvm-dwarfdump prints the debug line table with --verbose, any
DW_LNS_advance_line opcodes are printed as:

<offset>: 03 DW_LNS_advance_line (<new line value>)

I think this should be changed to:

<offset>: 03 DW_LNS_advance_line (<value to adjust by>)

This would be in keeping with the various operations that change the PC value,
e.g. DW_LNS_advance_pc, which print the value to adjust by.

This inconsistency can easily lead to confusion. Additionally, nothing really
is lost: the next time a line is emitted using e.g. DW_LNS_copy or a special
opcode, the new line value is printed there. Without this change, there is no
direct way of seeing what is actually written in the line program, which is the
point of verbose printing.

-- 
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/20191210/4d15533c/attachment.html>


More information about the llvm-bugs mailing list