Issue 200602.1: .debug_macro.dwo can refer to .debug_line.dwo?

Author: Paul T Robinson
Champion: Jeremy Morse
Date submitted: 2020-06-02
Date revised:
Date closed: 2022-01-10
Type: Clarification
Status: Accepted
DWARF Version: 6
Section 6.3.1,, pg 166, 169

The DW_MACRO_start_file entry states that if it is present, the macro
information header contains a reference to the .debug_line section of the 

If the DW_MACRO_start_file entry is in a .debug_macro.dwo section, that
reference should probably be to the .debug_line.dwo section.  This will
affect the description of the "debug_line_offset" field in section 6.3.1,
the description of DW_MACRO_start_file in section, the overall
description of split units in section, and also the diagram of
section relationship in Figure B.2 and associated notes.

Possible text revisions:

Section 6.3.1, item 3:

An offset in the .debug_line section (if this header is in a .debug_macro
section) or .debug_line.dwo section (if this header is in a .debug_macro.dwo
section) of the beginning...

Section, item 1, last paragraph:

If a DW_MACRO_start_file entry is present, the header contains a reference
to the .debug_line section or .debug_line.dwo section of the compilation,
as appropriate.

Section, p.188 6th bullet
line 28: ... (for the type units, and macro information), ...
line 31: (add to end) and DW_MACRO_start_file entries in the macro information.

2022-01-10:  Accepted.