aboutsummaryrefslogtreecommitdiff
path: root/binutils/objdump.c
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2022-03-10 09:11:40 +0000
committerNick Clifton <nickc@redhat.com>2022-03-10 09:11:40 +0000
commitbed566bbf6b619e15f0290c7d4c8a8b6dcbd99d4 (patch)
treedfa7d8b1680c9424387902a933d9245cdcc8e170 /binutils/objdump.c
parentd7c448293af68af5fc270d90d3746e39a496e750 (diff)
downloadgdb-bed566bbf6b619e15f0290c7d4c8a8b6dcbd99d4.zip
gdb-bed566bbf6b619e15f0290c7d4c8a8b6dcbd99d4.tar.gz
gdb-bed566bbf6b619e15f0290c7d4c8a8b6dcbd99d4.tar.bz2
Add option to objdump/readelf to disable access to debuginfod servers.
* dwarf.c (use_debuginfod): New variable. Set to 1. (load_separate_debug_info): Only call debuginfod_fetch_separate_debug_info is use_debuginfod is true. (dwarf_select_sections_by_names): Add do-not-use-debuginfod and use-debuginfod options. (dwarf_select_sections_by_letters): Add D and E options. * dwarf.h (use_debuginfod): New extern. * objdump.c (usage): Mention the new options. * readelf.c (usage): Likewise. * doc/binutils.texi: Document the new options. * doc/debug-options.texi: Describe the new options. * NEWS: Mention the new feature. * testsuite/binutils-all/debuginfod.exp: Add tests of the new options.
Diffstat (limited to 'binutils/objdump.c')
-rw-r--r--binutils/objdump.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/binutils/objdump.c b/binutils/objdump.c
index 24e9186..8e1c9cb 100644
--- a/binutils/objdump.c
+++ b/binutils/objdump.c
@@ -282,6 +282,14 @@ usage (FILE *stream, int status)
Do not follow links to separate debug info files\n\
(default)\n"));
#endif
+#if HAVE_LIBDEBUGINFOD
+ fprintf (stream, _("\
+ -WD --dwarf=use-debuginfod\n\
+ When following links, also query debuginfod servers (default)\n"));
+ fprintf (stream, _("\
+ -WE --dwarf=do-not-use-debuginfod\n\
+ When following links, do not query debuginfod servers\n"));
+#endif
fprintf (stream, _("\
-L, --process-links Display the contents of non-debug sections in\n\
separate debuginfo files. (Implies -WK)\n"));