summaryrefslogtreecommitdiff
path: root/binutils/dwarf.h
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2022-05-20 16:55:36 +0100
committerNick Clifton <nickc@redhat.com>2022-05-20 16:55:36 +0100
commit94585d6d4495a001dd5023f728150c96d5740ba8 (patch)
treee2ae934b5864bda0281b1dbf39e153018256451c /binutils/dwarf.h
parent9ecdcd1be1e8487fca035c588d17a102d1f8b5eb (diff)
downloadbinutils-gdb-94585d6d4495a001dd5023f728150c96d5740ba8.tar.gz
Stop readekf and objdump from aggressively following links.
* dwarf.c (dwarf_select_sections_by_names): Return zero if no sections were selected. (dwarf_select_sections_by_letters): Likewise. * dwarf.h: (dwarf_select_sections_by_names): Update prototype. (dwarf_select_sections_by_letters): Update prototype. * objdump.c (might_need_separate_debug_info): New function. (dump_bfd): Call new function before attempting to load separate debug info files. (main): Do not enable dwarf section dumping for -WK or -WN. * readelf.c (parse_args): Do not enable dwarf section dumping for -wK or -wN. (might_need_separate_debug_info): New function. (process_object): Call new function before attempting to load separate debug info files. * testsuite/binutils-all/debuginfo.exp: Expect -WE and -wE debuginfod tests to pass. * testsuite/binutils-all/objdump.Wk: Add extra regexps. * testsuite/binutils-all/readelf.k: Add extra regexps.
Diffstat (limited to 'binutils/dwarf.h')
-rw-r--r--binutils/dwarf.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/binutils/dwarf.h b/binutils/dwarf.h
index ccce2461c81..040e674c6ce 100644
--- a/binutils/dwarf.h
+++ b/binutils/dwarf.h
@@ -250,8 +250,8 @@ extern void *open_debug_file (const char *);
extern void free_debug_memory (void);
-extern void dwarf_select_sections_by_names (const char *);
-extern void dwarf_select_sections_by_letters (const char *);
+extern int dwarf_select_sections_by_names (const char *);
+extern int dwarf_select_sections_by_letters (const char *);
extern void dwarf_select_sections_all (void);
extern unsigned int * find_cu_tu_set (void *, unsigned int);