PATCH: improve gprof error message

Ben Elliston bje@au1.ibm.com
Wed Mar 22 04:52:00 GMT 2006


Pretty obvious, I'd have thought.
Okay for the trunk?

2006-03-21  Ben Elliston  <bje@au.ibm.com>

       * corefile.c (core_init): Report that the executable is not in the
       expected executable format rather than "a.out" format.

Index: corefile.c
===================================================================
RCS file: /cvs/src/src/gprof/corefile.c,v
retrieving revision 1.23
diff -u -p -r1.23 corefile.c
--- corefile.c  9 May 2005 06:55:24 -0000       1.23
+++ corefile.c  22 Mar 2006 03:42:16 -0000
@@ -155,7 +155,7 @@ core_init (const char *aout_name)
 
   if (!bfd_check_format (core_bfd, bfd_object))
     {
-      fprintf (stderr, _("%s: %s: not in a.out format\n"), whoami, aout_name);
+      fprintf (stderr, _("%s: %s: not in executable format\n"), whoami, aout_name);
       done (1);
     }
 



More information about the Binutils mailing list