aboutsummaryrefslogtreecommitdiff
path: root/gdb/remote-sim.h
diff options
context:
space:
mode:
authorDavid Edelsohn <dje.gcc@gmail.com>1996-11-20 08:55:42 +0000
committerDavid Edelsohn <dje.gcc@gmail.com>1996-11-20 08:55:42 +0000
commit4da8b2a5f472f70993e7a40529960547eabe6479 (patch)
treeb0dca307c40edcbaad6e2271949fda83bc0af111 /gdb/remote-sim.h
parent9d10b92d2ab96407190ff3e22afecf0370c75149 (diff)
downloadgdb-4da8b2a5f472f70993e7a40529960547eabe6479.zip
gdb-4da8b2a5f472f70993e7a40529960547eabe6479.tar.gz
gdb-4da8b2a5f472f70993e7a40529960547eabe6479.tar.bz2
* callback.h: Deleted, moved to ../include.
* callback.c: Deleted, moved to ../sim/common. * Makefile.in (SFILES,COMMON_OBJS): Delete callback.[co]. (callback.o): Delete rule. * remote-sim.h: No longer include callback.h (sim_callback_write_stdout): Delete prototype. * remote-sim.c (init_callbacks,end_callbacks): New functions. (gdb_os_write_stdout, gdb_os_printf_filtered): New functions. (gdb_callback, callbacks_initialized): New static globals. (gdbsim_open): Call init_callbacks. (gdbsim_close): Call end_callbacks. (simulator_command): Call init_callbacks.
Diffstat (limited to 'gdb/remote-sim.h')
-rw-r--r--gdb/remote-sim.h14
1 files changed, 2 insertions, 12 deletions
diff --git a/gdb/remote-sim.h b/gdb/remote-sim.h
index 8c106a2..1281e70 100644
--- a/gdb/remote-sim.h
+++ b/gdb/remote-sim.h
@@ -20,7 +20,6 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
#if !defined (REMOTE_SIM_H)
#define REMOTE_SIM_H 1
-#include "callback.h"
/* This file is used when building stand-alone simulators, so isolate this
file from gdb. */
@@ -37,14 +36,11 @@ typedef CORE_ADDR_TYPE SIM_ADDR;
The simulator may use the following callbacks (gdb routines) which the
standalone program must provide.
- void printf_filtered (char *msg, ...);
void error /-* noreturn *-/ (char *msg, ...);
void *xmalloc (long size);
- int sim_callback_write_stdout (char *, int len);
- The new way of doing I/O is to use the pointer provided by GDB
- via the sim_set_callbacks call, look in callbacks.c to see what
- can be done.
+ I/O is done by using a pointer provided by GDB via the sim_set_callbacks
+ call, look in callbacks.c to see what can be done.
*/
/* Main simulator entry points ...
@@ -129,14 +125,8 @@ void sim_resume PARAMS ((int step, int siggnal));
void sim_do_command PARAMS ((char *cmd));
-
-/* Callbacks for the simulator to use. */
-
-int sim_callback_write_stdout PARAMS ((char *, int));
-
/* Provide simulator with a standard host_callback_struct. */
void sim_set_callbacks PARAMS ((struct host_callback_struct *));
-
#endif /* !defined (REMOTE_SIM_H) */