aboutsummaryrefslogtreecommitdiff
path: root/binutils/readelf.c
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2020-06-22 17:44:56 +0100
committerNick Clifton <nickc@redhat.com>2020-06-22 17:44:56 +0100
commite4b7104b1e0c70613d0f553cb18d25c7343647d3 (patch)
tree2b6a482972f5b2e7ba593c7fedf41696c67d784d /binutils/readelf.c
parent359157df2087894563a900e5f63299b42f460be2 (diff)
downloadgdb-e4b7104b1e0c70613d0f553cb18d25c7343647d3.zip
gdb-e4b7104b1e0c70613d0f553cb18d25c7343647d3.tar.gz
gdb-e4b7104b1e0c70613d0f553cb18d25c7343647d3.tar.bz2
Add support for decoding the DW_MACRO_define_strx and DW_MACRO_undef_strx operands found in DWARF-5 .debug_macro sections.
PR 26112 * dwarf.c (display_debug_str_offsets): Add code to display the contents of the .debug_str_offsets section. (display_debug_macro): Add support for DW_MACRO_define_strx and DW_MACRO_undef_strx.
Diffstat (limited to 'binutils/readelf.c')
-rw-r--r--binutils/readelf.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/binutils/readelf.c b/binutils/readelf.c
index 101fd66..9e4fa33 100644
--- a/binutils/readelf.c
+++ b/binutils/readelf.c
@@ -4548,9 +4548,9 @@ usage (FILE * stream)
-R --relocated-dump=<number|name>\n\
Dump the contents of section <number|name> as relocated bytes\n\
-z --decompress Decompress section before dumping it\n\
- -w[lLiaprmfFsoRtUuTgAckK] or\n\
+ -w[lLiaprmfFsoORtUuTgAckK] or\n\
--debug-dump[=rawline,=decodedline,=info,=abbrev,=pubnames,=aranges,=macro,=frames,\n\
- =frames-interp,=str,=loc,=Ranges,=pubtypes,\n\
+ =frames-interp,=str,=str-offsets,=loc,=Ranges,=pubtypes,\n\
=gdb_index,=trace_info,=trace_abbrev,=trace_aranges,\n\
=addr,=cu_index,=links,=follow-links]\n\
Display the contents of DWARF debug sections\n"));
@@ -6388,7 +6388,7 @@ process_section_headers (Filedata * filedata)
if ((do_debugging || do_debug_info || do_debug_abbrevs
|| do_debug_lines || do_debug_pubnames || do_debug_pubtypes
|| do_debug_aranges || do_debug_frames || do_debug_macinfo
- || do_debug_str || do_debug_loc || do_debug_ranges
+ || do_debug_str || do_debug_str_offsets || do_debug_loc || do_debug_ranges
|| do_debug_addr || do_debug_cu_index || do_debug_links)
&& (const_strneq (name, ".debug_")
|| const_strneq (name, ".zdebug_")))
@@ -6415,6 +6415,7 @@ process_section_headers (Filedata * filedata)
|| (do_debug_macinfo && const_strneq (name, "macinfo"))
|| (do_debug_macinfo && const_strneq (name, "macro"))
|| (do_debug_str && const_strneq (name, "str"))
+ || (do_debug_str_offsets && const_strneq (name, "str_offsets"))
|| (do_debug_loc && const_strneq (name, "loc"))
|| (do_debug_loc && const_strneq (name, "loclists"))
|| (do_debug_addr && const_strneq (name, "addr"))