In the assembly generated for the dwarf assembly for test-case
gdb.dwarf2/debug-names-tu-dwarf5.exp, there's this bit:
...
.uleb128 0x2003 /* DW_IDX_GNU_language */
.uleb128 0x21 /* DW_FORM_flag_present */
.sleb128 0x0002 /* DW_LANG_C */
...
As it happens, 0x21 is not DW_FORM_flag_present, but DW_FORM_implicit_const,
and the following entry is the value of the attribute.
Fix the comment, and make the relation between the two entries more clear by
printing:
...
.uleb128 0x2003 /* DW_IDX_GNU_language */
.uleb128 0x21 /* DW_FORM_implicit_const */
.sleb128 0x0002 /* DW_FORM_implicit_const value: DW_LANG_C */
...
Approved-By: Tom Tromey <tom@tromey.com>
_op .uleb128 $_constants(DW_IDX_GNU_language) \
"DW_IDX_GNU_language"
_op .uleb128 $_constants(DW_FORM_implicit_const) \
- "DW_FORM_flag_present"
- _op .sleb128 $_constants($word) $word
+ "DW_FORM_implicit_const"
+ _op .sleb128 $_constants($word) \
+ "DW_FORM_implicit_const value: $word"
} else {
error "unrecognized extra keyword $word"
}