This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Report bfd version in assert, abort.
- To: binutils at sourceware dot cygnus dot com
- Subject: Report bfd version in assert, abort.
- From: Alan Modra <amodra at bigpond dot net dot au>
- Date: Sat, 6 Oct 2001 17:11:13 +0930
In the interests of better bug reporting..
* bfd.c (bfd_assert): Report bfd version.
(_bfd_abort): Likewise.
Index: bfd/bfd.c
===================================================================
RCS file: /cvs/src/src/bfd/bfd.c,v
retrieving revision 1.25
diff -u -p -r1.25 bfd.c
--- bfd.c 2001/09/26 01:53:25 1.25
+++ bfd.c 2001/10/06 07:29:51
@@ -697,7 +697,8 @@ bfd_assert (file, line)
const char *file;
int line;
{
- (*_bfd_error_handler) (_("bfd assertion fail %s:%d"), file, line);
+ (*_bfd_error_handler) (_("BFD %s assertion fail %s:%d"),
+ BFD_VERSION_STRING, file, line);
}
/* A more or less friendly abort message. In libbfd.h abort is
@@ -715,12 +716,12 @@ _bfd_abort (file, line, fn)
{
if (fn != NULL)
(*_bfd_error_handler)
- (_("BFD internal error, aborting at %s line %d in %s\n"),
- file, line, fn);
+ (_("BFD %s internal error, aborting at %s line %d in %s\n"),
+ BFD_VERSION_STRING, file, line, fn);
else
(*_bfd_error_handler)
- (_("BFD internal error, aborting at %s line %d\n"),
- file, line);
+ (_("BFD %sinternal error, aborting at %s line %d\n"),
+ BFD_VERSION_STRING, file, line);
(*_bfd_error_handler) (_("Please report this bug.\n"));
xexit (EXIT_FAILURE);
}