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: unassignedb...@nondot.org
          Reporter: jh7370.2...@my.bristol.ac.uk
                CC: llvm-bugs@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.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to