aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>1997-05-20 00:05:27 +0000
committerAndrew Cagney <cagney@redhat.com>1997-05-20 00:05:27 +0000
commit24aa2b57afc51bb0d47d8a3cfa470ad40a36cc6b (patch)
tree85c51478ecca1050b7fe9f99011a5ede31cdc5ba /include
parent8c5b6ead7d2880ce708ee185ce3506cda1aeff4d (diff)
downloadgdb-24aa2b57afc51bb0d47d8a3cfa470ad40a36cc6b.zip
gdb-24aa2b57afc51bb0d47d8a3cfa470ad40a36cc6b.tar.gz
gdb-24aa2b57afc51bb0d47d8a3cfa470ad40a36cc6b.tar.bz2
Depreciate sim_set_callbacks() function. Set simulator callbacks
during sim_open().
Diffstat (limited to 'include')
-rw-r--r--include/ChangeLog4
-rw-r--r--include/remote-sim.h8
2 files changed, 10 insertions, 2 deletions
diff --git a/include/ChangeLog b/include/ChangeLog
index f42db31..c370eec 100644
--- a/include/ChangeLog
+++ b/include/ChangeLog
@@ -1,3 +1,7 @@
+Tue May 20 09:32:22 1997 Andrew Cagney <cagney@b1.cygnus.com>
+
+ * remote-sim.h (sim_open): Add callback struct.
+
Mon May 19 19:14:44 1997 Andrew Cagney <cagney@b1.cygnus.com>
* remote-sim.h: Pass SD into sim_size.
diff --git a/include/remote-sim.h b/include/remote-sim.h
index 201e531..45abd4b 100644
--- a/include/remote-sim.h
+++ b/include/remote-sim.h
@@ -61,13 +61,14 @@ struct _bfd;
is selected from the gdb command line.
KIND specifies how the simulator will be used. Currently there are only
two kinds: standalone and debug.
+ CALLBACK provides a standard host callback.
ARGV is passed from the command line and can be used to select whatever
run time options the simulator provides. It is the standard NULL
terminated array of pointers, with argv[0] being the program name.
The result is a descriptor that must be passed back to the other sim_foo
functions. */
-SIM_DESC sim_open PARAMS ((SIM_OPEN_KIND kind, char **argv));
+SIM_DESC sim_open PARAMS ((SIM_OPEN_KIND kind, struct host_callback_struct *callback, char **argv));
/* Terminate usage of the simulator. This may involve freeing target memory
@@ -163,7 +164,10 @@ void sim_do_command PARAMS ((SIM_DESC sd, char *cmd));
/* Provide simulator with a standard host_callback_struct.
If SD is NULL, the command is to be interpreted as refering to
- the global state, however the simulator defines that. */
+ the global state, however the simulator defines that.
+
+ This function is depreciated. Callbacks are set as part of
+ sim_open. */
void sim_set_callbacks PARAMS ((SIM_DESC sd, struct host_callback_struct *));