diff options
author | David Edelsohn <dje.gcc@gmail.com> | 1996-11-20 08:55:42 +0000 |
---|---|---|
committer | David Edelsohn <dje.gcc@gmail.com> | 1996-11-20 08:55:42 +0000 |
commit | 4da8b2a5f472f70993e7a40529960547eabe6479 (patch) | |
tree | b0dca307c40edcbaad6e2271949fda83bc0af111 /gdb/callback.h | |
parent | 9d10b92d2ab96407190ff3e22afecf0370c75149 (diff) | |
download | gdb-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/callback.h')
-rw-r--r-- | gdb/callback.h | 41 |
1 files changed, 0 insertions, 41 deletions
diff --git a/gdb/callback.h b/gdb/callback.h deleted file mode 100644 index b97c3b2..0000000 --- a/gdb/callback.h +++ /dev/null @@ -1,41 +0,0 @@ -#ifndef CALLBACK_H -#define CALLBACK_H -typedef struct host_callback_struct host_callback; - -#define MAX_CALLBACK_FDS 10 - -struct host_callback_struct -{ - int (*close) PARAMS ((host_callback *,int)); - int (*get_errno) PARAMS ((host_callback *)); - int (*isatty) PARAMS ((host_callback *, int)); - int (*lseek) PARAMS ((host_callback *, int, long , int)); - int (*open) PARAMS ((host_callback *, const char*, int mode)); - int (*read) PARAMS ((host_callback *,int, char *, int)); - int (*read_stdin) PARAMS (( host_callback *, char *, int)); - int (*rename) PARAMS ((host_callback *, const char *, const char *)); - int (*system) PARAMS ((host_callback *, const char *)); - long (*time) PARAMS ((host_callback *, long *)); - int (*unlink) PARAMS ((host_callback *, const char *)); - int (*write) PARAMS ((host_callback *,int, const char *, int)); - int (*write_stdout) PARAMS ((host_callback *, const char *, int)); - - - /* Used when the target has gone away, so we can close open - handles and free memory etc etc. */ - int (*shutdown) PARAMS ((host_callback *)); - int (*init) PARAMS ((host_callback *)); - - /* Talk to the user on a console. */ - void (*printf_filtered) PARAMS ((host_callback *, const char *, ...)); - - int last_errno; /* host format */ - - int fdmap[MAX_CALLBACK_FDS]; - char fdopen[MAX_CALLBACK_FDS]; - char alwaysopen[MAX_CALLBACK_FDS]; -}; -#endif - - -extern host_callback default_callback; |