Improve error output if executable file format isn't recognized.
This commit is contained in:
parent
454f740bd4
commit
779cdb4e70
3
gnu/dist/gprof/core.c
vendored
3
gnu/dist/gprof/core.c
vendored
@ -126,7 +126,8 @@ DEFUN (core_init, (a_out_name), const char *a_out_name)
|
||||
|
||||
if (!bfd_check_format (core_bfd, bfd_object))
|
||||
{
|
||||
fprintf (stderr, "%s: %s: not in a.out format\n", whoami, a_out_name);
|
||||
fprintf (stderr, "%s: %s: unrecognized executable format\n",
|
||||
whoami, a_out_name);
|
||||
done (1);
|
||||
}
|
||||
|
||||
|
3
gnu/dist/toolchain/gprof/corefile.c
vendored
3
gnu/dist/toolchain/gprof/corefile.c
vendored
@ -125,7 +125,8 @@ DEFUN (core_init, (a_out_name), const char *a_out_name)
|
||||
|
||||
if (!bfd_check_format (core_bfd, bfd_object))
|
||||
{
|
||||
fprintf (stderr, _("%s: %s: not in a.out format\n"), whoami, a_out_name);
|
||||
fprintf (stderr, _("%s: %s: unrecognized executable format\n"),
|
||||
whoami, a_out_name);
|
||||
done (1);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user