[Nasm-bugs] [Bug 3392325] Bad debug info generation

no-reply at bugzilla-nasm.gorcunov.org no-reply at bugzilla-nasm.gorcunov.org
Mon Apr 25 12:05:07 PDT 2016


http://bugzilla.nasm.us/show_bug.cgi?id=3392325

Hilmar <hilmar.ackermann at googlemail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |hilmar.ackermann at googlemail
                   |                            |.com

--- Comment #7 from Hilmar <hilmar.ackermann at googlemail.com> ---
Hi,

I needed the .debug_line section in one of my projects too, so I wrote an own
dwarf-decoder and I discovered the same problem. I see the bug here (for the
mentioned example) at the side of NASM: In the dwarf header is set: version=3.
In the official dwarf-specification of version 3
(http://dwarfstd.org/doc/Dwarf3.pdf) I read (on page 101):

"DW_LNS_advance_line (opcode 3 - standard opcode):
The DW_LNS_advance_line opcode takes a single signed LEB128 operand and adds
that
value to the line register of the state machine."

There is no statement, that the row is appended after that (in contrast to a
special opcode as example). A simple DW_LNS_copy (standard opcode 1, no
operands) after DW_LNS_advance_line should fix the problem.

Regards,
Hilmar

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Nasm-bugs mailing list