aboutsummaryrefslogtreecommitdiff
path: root/sim/tic80
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>1997-05-20 01:57:43 +0000
committerAndrew Cagney <cagney@redhat.com>1997-05-20 01:57:43 +0000
commitff82f21409746d1f9491b9c4ab13e74686ca6652 (patch)
treee47ac3cfaad58a74606f879ef932418b2b04a91a /sim/tic80
parent24aa2b57afc51bb0d47d8a3cfa470ad40a36cc6b (diff)
downloadgdb-ff82f21409746d1f9491b9c4ab13e74686ca6652.zip
gdb-ff82f21409746d1f9491b9c4ab13e74686ca6652.tar.gz
gdb-ff82f21409746d1f9491b9c4ab13e74686ca6652.tar.bz2
Part II of adding callback argument to sim_open(). Update all the
other simulators; remove SIM_DESC from depreciated function sim_set_callbacks().
Diffstat (limited to 'sim/tic80')
-rw-r--r--sim/tic80/ChangeLog5
-rw-r--r--sim/tic80/sim-calls.c8
-rw-r--r--sim/tic80/sim-main.h3
3 files changed, 7 insertions, 9 deletions
diff --git a/sim/tic80/ChangeLog b/sim/tic80/ChangeLog
index bd62e58..28e6de5 100644
--- a/sim/tic80/ChangeLog
+++ b/sim/tic80/ChangeLog
@@ -1,8 +1,11 @@
Tue May 20 09:33:31 1997 Andrew Cagney <cagney@b1.cygnus.com>
+ * sim-main.h: Include <unistd.h>.
+
* sim-calls.c (sim_set_callback): Delete.
(sim_open): Add/install callback argument.
-
+ (sim_size): Delete.
+
Mon May 19 18:59:33 1997 Mike Meissner <meissner@cygnus.com>
* configure.in: Check for getpid, kill functions.
diff --git a/sim/tic80/sim-calls.c b/sim/tic80/sim-calls.c
index e62ca13..d7b0af6 100644
--- a/sim/tic80/sim-calls.c
+++ b/sim/tic80/sim-calls.c
@@ -110,14 +110,6 @@ sim_open (SIM_OPEN_KIND kind, struct host_callback_struct *callback, char **argv
}
-/* NOTE: sim_size is going away */
-void
-sim_size (SIM_DESC sd, int i)
-{
- sim_io_error (sd, "unexpected call to sim_size()");
-}
-
-
void
sim_close (SIM_DESC sd, int quitting)
{
diff --git a/sim/tic80/sim-main.h b/sim/tic80/sim-main.h
index 3b06723..0881888 100644
--- a/sim/tic80/sim-main.h
+++ b/sim/tic80/sim-main.h
@@ -27,6 +27,9 @@
#include <signal.h>
#include <errno.h>
+#ifdef HAVE_UNISTD_H
+#include <unistd.h>
+#endif
/* These are generated files. */
#include "itable.h"