aboutsummaryrefslogtreecommitdiff
path: root/ld/ldmisc.c
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>1999-09-12 16:59:49 +0000
committerIan Lance Taylor <ian@airs.com>1999-09-12 16:59:49 +0000
commit45455cddda802f883f8ea8f341d68ccbb8c4735b (patch)
tree55b59372baf8b1095370550f139bcc3a2aacb9a9 /ld/ldmisc.c
parentbe4514d38dd8c05e99b7a58a182913d0b9f09e80 (diff)
downloadgdb-45455cddda802f883f8ea8f341d68ccbb8c4735b.zip
gdb-45455cddda802f883f8ea8f341d68ccbb8c4735b.tar.gz
gdb-45455cddda802f883f8ea8f341d68ccbb8c4735b.tar.bz2
1999-09-12 Donn Terry <donn@interix.com>
* ld.h (ld_abort): Declare. (abort): Define. * ldmisc.c (ld_abort): Define.
Diffstat (limited to 'ld/ldmisc.c')
-rw-r--r--ld/ldmisc.c19
1 files changed, 19 insertions, 0 deletions
diff --git a/ld/ldmisc.c b/ld/ldmisc.c
index 8fab228..267dff1 100644
--- a/ld/ldmisc.c
+++ b/ld/ldmisc.c
@@ -536,3 +536,22 @@ print_nl ()
{
fprintf (config.map_file, "\n");
}
+
+/* A more or less friendly abort message. In ld.h abort is defined to
+ call this function. */
+
+void
+ld_abort (file, line, fn)
+ const char *file;
+ int line;
+ const char *fn;
+{
+ if (fn != NULL)
+ einfo (_("%P: internal error: aborting at %s line %d in %s\n"),
+ file, line, fn);
+ else
+ einfo (_("%P: internal error: aborting at %s line %d\n"),
+ file, line);
+ einfo (_("%P%F: please report this bug\n"));
+ xexit (1);
+}