This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
[ob] Call internal_error, not abort
- From: Andrew Cagney <cagney at gnu dot org>
- To: gdb-patches at sources dot redhat dot com, Alexandre Oliva <aoliva at redhat dot com>
- Date: Thu, 10 Jun 2004 13:50:42 -0400
- Subject: [ob] Call internal_error, not abort
FYI,
I've committed the attached.
Andrew
2004-06-10 Andrew Cagney <cagney@gnu.org>
* mn10300-tdep.c (mn10300_type_align): Call internal_error instead
of abort.
Index: mn10300-tdep.c
===================================================================
RCS file: /cvs/src/src/gdb/mn10300-tdep.c,v
retrieving revision 1.107
diff -p -u -r1.107 mn10300-tdep.c
--- mn10300-tdep.c 8 Jun 2004 05:29:10 -0000 1.107
+++ mn10300-tdep.c 10 Jun 2004 17:48:45 -0000
@@ -246,7 +246,7 @@ mn10300_type_align (struct type *type)
return mn10300_type_align (check_typedef (type));
default:
- abort ();
+ internal_error (__FILE__, __LINE__, "bad switch");
}
}