aboutsummaryrefslogtreecommitdiff
path: root/sim/ppc/sim_calls.c
diff options
context:
space:
mode:
authorMatthew Green <mrg@redhat.com>2001-12-15 05:08:44 +0000
committerMatthew Green <mrg@redhat.com>2001-12-15 05:08:44 +0000
commitde46f45f87244ebb4cd78f5c12cf601caef2bd02 (patch)
treea3cdb12c0f385d6a12c8b3b3d9b195e9162ddf81 /sim/ppc/sim_calls.c
parentc9b2b0e01686e3bf993de41ed8868af3101c2740 (diff)
downloadgdb-de46f45f87244ebb4cd78f5c12cf601caef2bd02.zip
gdb-de46f45f87244ebb4cd78f5c12cf601caef2bd02.tar.gz
gdb-de46f45f87244ebb4cd78f5c12cf601caef2bd02.tar.bz2
* main.c: Include "defs.h", "bfd.h", "callback.h" and "remote-sim.h".
(sim_io_error): New function. * sim_calls.c: (sim_io_error): New function.
Diffstat (limited to 'sim/ppc/sim_calls.c')
-rw-r--r--sim/ppc/sim_calls.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/sim/ppc/sim_calls.c b/sim/ppc/sim_calls.c
index b6defa0..72f90d2 100644
--- a/sim/ppc/sim_calls.c
+++ b/sim/ppc/sim_calls.c
@@ -441,6 +441,16 @@ sim_io_flush_stdoutput(void)
}
}
+void
+sim_io_error (SIM_DESC sd, const char *fmt, ...)
+{
+ va_list ap;
+ va_start(ap, fmt);
+ callbacks->evprintf_filtered (callbacks, fmt, ap);
+ va_end(ap);
+ callbacks->error (callbacks, "");
+}
+
/****/
void *