mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-26 17:18:55 +00:00
top level:
2007-02-17 Mark Mitchell <mark@codesourcery.com> Nathan Sidwell <nathan@codesourcery.com> Vladimir Prus <vladimir@codesourcery.com Joseph Myers <joseph@codesourcery.com> * configure.ac (TOPLEVEL_CONFIGURE_ARGUMENTS): Fix quoting. * configure: Regenerate. bfd: 2007-02-17 Mark Mitchell <mark@codesourcery.com> Nathan Sidwell <nathan@codesourcery.com> Vladimir Prus <vladimir@codesourcery.com Joseph Myers <joseph@codesourcery.com> * configure.in (--with-pkgversion): New option. * configure: Regenerate. * Makefile.am (bfdver.h): Substitute for @bfd_version_package@. * Makefile.in: Regenerate. * version.h (BFD_VERSION_STRING): Define using @bfd_version_package@. bfd/doc: 2007-02-17 Mark Mitchell <mark@codesourcery.com> Nathan Sidwell <nathan@codesourcery.com> Vladimir Prus <vladimir@codesourcery.com Joseph Myers <joseph@codesourcery.com> * Makefile.in: Regenerate. binutils: 2007-02-17 Mark Mitchell <mark@codesourcery.com> Nathan Sidwell <nathan@codesourcery.com> Vladimir Prus <vladimir@codesourcery.com Joseph Myers <joseph@codesourcery.com> * configure.in (--with-bugurl): New option. * configure: Regenerate. * Makefile.am (REPORT_BUGS_TO): Define. (INCLUDES): Define REPORT_BUGS_TO. Regenerate dependencies. * Makefile.in: Regenerate. * doc/Makefile.in: Regenerate. * bucomm.h: Remove include of bin-bugs.h. * addr2line.c (usage): Don't print empty REPORT_BUGS_TO. * ar.c (usage): Pass s to list_supported_targets. Don't print empty REPORT_BUGS_TO. * coffdump.c (show_usage): Don't print empty REPORT_BUGS_TO. * cxxfilt.c (usage): Print bug url when giving help. * dlltool.c (usage): Likewise. * dllwrap.c (usage): Likewise. * nlmconv.c (show_usage): Don't print empty REPORT_BUGS_TO. * nm.c (usage): Likewise. * objcopy.c (copy_usage, strip_usage): Likewise. * objdump.c (usage): Likewise. * readelf.c ((usage): Likewise. Add STREAM argument. Adjust callers. * size.c (usage): Don't print empty REPORT_BUGS_TO. * srconv.c (show_usage): Likewise. * strings.c (usage): Likewise. * sysdymp.c (show_usage): Likewise. * windres.c (usage): Likewise. gas: 2007-02-17 Mark Mitchell <mark@codesourcery.com> Nathan Sidwell <nathan@codesourcery.com> Vladimir Prus <vladimir@codesourcery.com Joseph Myers <joseph@codesourcery.com> * configure.in (--with-bugurl): New option. * configure: Regenerate. * dep-in.sed: Remove bin-bugs.h. * Makefile.am (REPORT_BUGS_TO): Define. (INCLUDES): Define REPORT_BUGS_TO. (DEP_INCLUDES): Likewise. ($(OBJS)): No longer depend on bin-bugs.h. * Makefile.in: Regenerate. * doc/Makefile.in: Regenerate. * as.c (show_usage): Don't print empty REPORT_BUGS_TO. * as.h: Remove include of bin-bugs.h. gprof: 2007-02-17 Mark Mitchell <mark@codesourcery.com> Nathan Sidwell <nathan@codesourcery.com> Vladimir Prus <vladimir@codesourcery.com Joseph Myers <joseph@codesourcery.com> * configure.in (--with-pkgversion, --with-bugurl): New options. * configure: Regenerate. * Makefile.am (PKGVERSION, REPORT_BUGS_TO): Define. (INCLUDES): Define PKGVERSION and REPORT_BUGS_TO. Regenerate dependencies. * Makefile.in: Regenerate. * gprof.c (usage): Don't print empty REPORT_BUGS_TO. (main): Include PKGVERSION in version output. * gprof.h: Remove include of bin-bugs.h. include: 2007-02-17 Mark Mitchell <mark@codesourcery.com> Nathan Sidwell <nathan@codesourcery.com> Vladimir Prus <vladimir@codesourcery.com Joseph Myers <joseph@codesourcery.com> * bin-bugs.h: Remove. ld: 2007-02-17 Mark Mitchell <mark@codesourcery.com> Nathan Sidwell <nathan@codesourcery.com> Vladimir Prus <vladimir@codesourcery.com Joseph Myers <joseph@codesourcery.com> * configure.in (--with-bugurl): New option. * configure: Regenerate. * Makefile.am (REPORT_BUGS_TO): Define. (INCLUDES): Define REPORT_BUGS_TO. Regenerate dependencies. * Makefile.in: Regenerate. * ld.h: Remove include of bin-bugs.h. * lexsup.c (help): Don't print empty REPORT_BUGS_TO.
This commit is contained in:
@@ -2754,11 +2754,11 @@ static struct option options[] =
|
||||
};
|
||||
|
||||
static void
|
||||
usage (void)
|
||||
usage (FILE *stream)
|
||||
{
|
||||
fprintf (stdout, _("Usage: readelf <option(s)> elf-file(s)\n"));
|
||||
fprintf (stdout, _(" Display information about the contents of ELF format files\n"));
|
||||
fprintf (stdout, _(" Options are:\n\
|
||||
fprintf (stream, _("Usage: readelf <option(s)> elf-file(s)\n"));
|
||||
fprintf (stream, _(" Display information about the contents of ELF format files\n"));
|
||||
fprintf (stream, _(" Options are:\n\
|
||||
-a --all Equivalent to: -h -l -S -s -r -d -V -A -I\n\
|
||||
-h --file-header Display the ELF file header\n\
|
||||
-l --program-headers Display the program headers\n\
|
||||
@@ -2782,19 +2782,21 @@ usage (void)
|
||||
--debug-dump[=line,=info,=abbrev,=pubnames,=aranges,=macro,=frames,=str,=loc,=Ranges]\n\
|
||||
Display the contents of DWARF2 debug sections\n"));
|
||||
#ifdef SUPPORT_DISASSEMBLY
|
||||
fprintf (stdout, _("\
|
||||
fprintf (stream, _("\
|
||||
-i --instruction-dump=<number>\n\
|
||||
Disassemble the contents of section <number>\n"));
|
||||
#endif
|
||||
fprintf (stdout, _("\
|
||||
fprintf (stream, _("\
|
||||
-I --histogram Display histogram of bucket list lengths\n\
|
||||
-W --wide Allow output width to exceed 80 characters\n\
|
||||
@<file> Read options from <file>\n\
|
||||
-H --help Display this information\n\
|
||||
-v --version Display the version number of readelf\n"));
|
||||
fprintf (stdout, _("Report bugs to %s\n"), REPORT_BUGS_TO);
|
||||
|
||||
if (REPORT_BUGS_TO[0] && stream == stdout)
|
||||
fprintf (stdout, _("Report bugs to %s\n"), REPORT_BUGS_TO);
|
||||
|
||||
exit (0);
|
||||
exit (stream == stdout ? 0 : 1);
|
||||
}
|
||||
|
||||
/* Record the fact that the user wants the contents of section number
|
||||
@@ -2858,7 +2860,7 @@ parse_args (int argc, char **argv)
|
||||
int c;
|
||||
|
||||
if (argc < 2)
|
||||
usage ();
|
||||
usage (stderr);
|
||||
|
||||
while ((c = getopt_long
|
||||
(argc, argv, "ersuahnldSDAINtgw::x:i:vVWH", options, NULL)) != EOF)
|
||||
@@ -2872,7 +2874,7 @@ parse_args (int argc, char **argv)
|
||||
/* Long options. */
|
||||
break;
|
||||
case 'H':
|
||||
usage ();
|
||||
usage (stdout);
|
||||
break;
|
||||
|
||||
case 'a':
|
||||
@@ -3113,7 +3115,7 @@ parse_args (int argc, char **argv)
|
||||
error (_("Invalid option '-%c'\n"), c);
|
||||
/* Drop through. */
|
||||
case '?':
|
||||
usage ();
|
||||
usage (stderr);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3121,11 +3123,11 @@ parse_args (int argc, char **argv)
|
||||
&& !do_segments && !do_header && !do_dump && !do_version
|
||||
&& !do_histogram && !do_debugging && !do_arch && !do_notes
|
||||
&& !do_section_groups)
|
||||
usage ();
|
||||
usage (stderr);
|
||||
else if (argc < 3)
|
||||
{
|
||||
warn (_("Nothing to do.\n"));
|
||||
usage ();
|
||||
usage (stderr);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user