diff options
author | Martin Liska <mliska@suse.cz> | 2021-03-22 12:12:36 +0100 |
---|---|---|
committer | Martin Liska <mliska@suse.cz> | 2021-04-01 14:58:36 +0200 |
commit | 24d127aa9f26445709dbd53e14e2ab636a449888 (patch) | |
tree | ab6a6cf08408f26812202c4d66128dadf35cc2a6 /binutils/dwarf.c | |
parent | 84838a61666fbc412119f544e6973ab59dd510a4 (diff) | |
download | gdb-24d127aa9f26445709dbd53e14e2ab636a449888.zip gdb-24d127aa9f26445709dbd53e14e2ab636a449888.tar.gz gdb-24d127aa9f26445709dbd53e14e2ab636a449888.tar.bz2 |
Replace const_strneq with startswith.
binutils/ChangeLog:
* dwarf.c (display_debug_lines_raw): Replace const_strneq with
startswith.
(display_debug_lines_decoded): Likewise.
(display_debug_links): Likewise.
* elfcomm.c (setup_archive): Likewise.
* elfcomm.h (const_strneq): Likewise.
* readelf.c (process_section_headers): Likewise.
(slurp_ia64_unwind_table): Likewise.
(slurp_hppa_unwind_table): Likewise.
(decode_arm_unwind): Likewise.
(display_debug_section): Likewise.
(process_note): Likewise.
Diffstat (limited to 'binutils/dwarf.c')
-rw-r--r-- | binutils/dwarf.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/binutils/dwarf.c b/binutils/dwarf.c index a8b6562..293d33e 100644 --- a/binutils/dwarf.c +++ b/binutils/dwarf.c @@ -4500,7 +4500,7 @@ display_debug_lines_raw (struct dwarf_section * section, unsigned char *end_of_sequence; int i; - if (const_strneq (section->name, ".debug_line.") + if (startswith (section->name, ".debug_line.") /* Note: the following does not apply to .debug_line.dwo sections. These are full debug_line sections. */ && strcmp (section->name, ".debug_line.dwo") != 0) @@ -4924,7 +4924,7 @@ display_debug_lines_decoded (struct dwarf_section * section, unsigned char **directory_table = NULL; dwarf_vma n_directories = 0; - if (const_strneq (section->name, ".debug_line.") + if (startswith (section->name, ".debug_line.") /* Note: the following does not apply to .debug_line.dwo sections. These are full debug_line sections. */ && strcmp (section->name, ".debug_line.dwo") != 0) @@ -10031,7 +10031,7 @@ display_debug_links (struct dwarf_section * section, printf (_(" Separate debug info file: %s\n"), filename); - if (const_strneq (section->name, ".gnu_debuglink")) + if (startswith (section->name, ".gnu_debuglink")) { unsigned int crc32; unsigned int crc_offset; @@ -10055,7 +10055,7 @@ display_debug_links (struct dwarf_section * section, return 0; } } - else /* const_strneq (section->name, ".gnu_debugaltlink") */ + else /* startswith (section->name, ".gnu_debugaltlink") */ { const unsigned char * build_id = section->start + filelen + 1; bfd_size_type build_id_len = section->size - (filelen + 1); |