[RFC] readelf -w/-debug-dump= association

Alan Modra amodra@gmail.com
Sat May 29 13:21:32 GMT 2021


On Sat, May 29, 2021 at 09:00:13PM +0930, Alan Modra wrote:
> 	* readelf.c (parse_args): Call dwarf_select_sections_all on
> 	--debug-dump without optarg.
> 	(usage): Associate -w and --debug-dump options closely.
> 	Split up help message.  Remove extraneous blank lines around
> 	ctf help.
> 	* objdump.c (usage): Similarly.

Fix a last-minute change..

	* objdump (usage): Add missing \n.

diff --git a/binutils/objdump.c b/binutils/objdump.c
index 977f8172092..a7b8303b992 100644
--- a/binutils/objdump.c
+++ b/binutils/objdump.c
@@ -254,17 +254,17 @@ usage (FILE *stream, int status)
                             separate debuginfo files\n"));
 #if DEFAULT_FOR_FOLLOW_LINKS
   fprintf (stream, _("\
-  -WK,--dwarf=follow-links\
+  -WK,--dwarf=follow-links\n\
                            Follow links to separate debug info files (default)\n"));
   fprintf (stream, _("\
-  -WN,--dwarf=no-follow-links\
+  -WN,--dwarf=no-follow-links\n\
                            Do not follow links to separate debug info files\n"));
 #else
   fprintf (stream, _("\
-  -WK,--dwarf=follow-links\
+  -WK,--dwarf=follow-links\n\
                            Follow links to separate debug info files\n"));
   fprintf (stream, _("\
-  -WN,--dwarf=no-follow-links\
+  -WN,--dwarf=no-follow-links\n\
                            Do not follow links to separate debug info files\n\
                             (default)\n"));
 #endif


-- 
Alan Modra
Australia Development Lab, IBM


More information about the Binutils mailing list