aboutsummaryrefslogtreecommitdiff
path: root/sim/cris
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2015-12-25 02:13:18 -0500
committerMike Frysinger <vapier@gentoo.org>2015-12-25 02:18:16 -0500
commit42a3af5688cd41550e2b517f676f03f2842e615b (patch)
tree5592399da0fca61cddc8f1c761d9bbd01b6dc412 /sim/cris
parent9e8e7dd966670c80f3b71f8cf7e07f2843b33e80 (diff)
downloadgdb-42a3af5688cd41550e2b517f676f03f2842e615b.zip
gdb-42a3af5688cd41550e2b517f676f03f2842e615b.tar.gz
gdb-42a3af5688cd41550e2b517f676f03f2842e615b.tar.bz2
sim: device_error: punt
Only four targets implement this function, and three of them do nothing. The 4th merely calls abort. Since calls to this function are followed by calls to sim_hw_abort or sim_io_error, this is largely useless. In the two places where we don't, replace the call with sim_engine_abort. We want to kill off the WITH_DEVICES logic in favor of WITH_HW, so this is a good first step.
Diffstat (limited to 'sim/cris')
-rw-r--r--sim/cris/ChangeLog4
-rw-r--r--sim/cris/devices.c8
2 files changed, 4 insertions, 8 deletions
diff --git a/sim/cris/ChangeLog b/sim/cris/ChangeLog
index 7b7618c..dbc2d09 100644
--- a/sim/cris/ChangeLog
+++ b/sim/cris/ChangeLog
@@ -1,3 +1,7 @@
+2015-12-25 Mike Frysinger <vapier@gentoo.org>
+
+ * devices.c (device_error): Delete.
+
2015-12-24 Mike Frysinger <vapier@gentoo.org>
* tconfig.h (SIM_HANDLES_LMA): Delete.
diff --git a/sim/cris/devices.c b/sim/cris/devices.c
index a7fa051..56cdfed 100644
--- a/sim/cris/devices.c
+++ b/sim/cris/devices.c
@@ -31,14 +31,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. */
/* Placeholder definition. */
struct _device { char dummy; } cris_devices;
-void
-device_error (device *me ATTRIBUTE_UNUSED,
- const char *message ATTRIBUTE_UNUSED,
- ...)
-{
- abort ();
-}
-
int
device_io_read_buffer (device *me ATTRIBUTE_UNUSED,
void *source ATTRIBUTE_UNUSED,