mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-12-19 01:19:41 +08:00
When printing a DW_MACRO_define_strx entry in a .debug_macro.dwo section, we run into: ... DW_MACRO_define_strx lineno : 0 macro : <no .debug_str_offsets section> ... Fix this in display_debug_macro by passing the correct dwo argument to a fetch_indexed_string call. That works fine for readelf -w, with with readelf -wm we have: ... DW_MACRO_define_strx lineno : 0 macro : <no .debug_str_offsets.dwo section> ... Fix this in display_debug_macro by doing load_debug_section_with_follow for str_dwo / str_index_dwo sections instead of str / str_index sections when handling .debug_macro.dwo. PR 31735
22 lines
559 B
Makefile
22 lines
559 B
Makefile
#name: readelf -wsm readelf-debug-str-offsets-dw4
|
|
#source: readelf-debug-str-offsets-dw4.s
|
|
#readelf: -wsm
|
|
|
|
Contents of the .debug_str.dwo section:
|
|
|
|
0x00000000 46495253 54005345 434f4e44 00 FIRST.SECOND.
|
|
|
|
Contents of the .debug_str_offsets.dwo section:
|
|
|
|
Length: 0x8
|
|
Index Offset \[String\]
|
|
0 00000000 FIRST
|
|
1 00000006 SECOND
|
|
Contents of the .debug_macro.dwo section:
|
|
|
|
Offset: 0
|
|
Version: 4
|
|
Offset size: 4
|
|
|
|
DW_MACRO_define_strx lineno : 0 macro : FIRST
|