aboutsummaryrefslogtreecommitdiff
path: root/sim/ppc/sim_calls.c
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>1997-08-25 23:14:25 +0000
committerAndrew Cagney <cagney@redhat.com>1997-08-25 23:14:25 +0000
commit247fccdeb54a09a14287b2e829511803ad9d7cc1 (patch)
treec992df7132ca0c315cbcfd5ad81bbc4f16675936 /sim/ppc/sim_calls.c
parent04f295b64859a6c6b01739fc4dd7fddce42db8d9 (diff)
downloadgdb-247fccdeb54a09a14287b2e829511803ad9d7cc1.zip
gdb-247fccdeb54a09a14287b2e829511803ad9d7cc1.tar.gz
gdb-247fccdeb54a09a14287b2e829511803ad9d7cc1.tar.bz2
Add ABFD argument to sim_open call. Pass through to sim_config so
that image properties such as endianness can be checked. More strongly document the expected behavour of each of the sim_* interfaces. Add default endian argument to simulator config macro SIM_AC_OPTION_ENDIAN. Use in sim_config.
Diffstat (limited to 'sim/ppc/sim_calls.c')
-rw-r--r--sim/ppc/sim_calls.c15
1 files changed, 5 insertions, 10 deletions
diff --git a/sim/ppc/sim_calls.c b/sim/ppc/sim_calls.c
index f7d8803..1bee0df 100644
--- a/sim/ppc/sim_calls.c
+++ b/sim/ppc/sim_calls.c
@@ -51,13 +51,17 @@
static psim *simulator;
static device *root_device;
static const char *register_names[] = REGISTER_NAMES;
+static host_callback *callbacks;
/* For communication between sim_load and sim_create_inferior.
This can be made to go away, please do. */
static unsigned_word entry_point;
SIM_DESC
-sim_open (SIM_OPEN_KIND kind, host_callback *callback, char **argv)
+sim_open (SIM_OPEN_KIND kind,
+ host_callback *callback,
+ struct _bfd *abfd,
+ char **argv)
{
callbacks = callback;
@@ -295,8 +299,6 @@ sim_do_command (SIM_DESC sd, char *cmd)
advanced operations (such as dup or write) must either be mapped to
one of the below calls or handled internally */
-static host_callback *callbacks;
-
int
sim_io_read_stdin(char *buf,
int sizeof_buf)
@@ -384,13 +386,6 @@ sim_io_flush_stdoutput(void)
}
}
-void
-sim_set_callbacks (host_callback *callback)
-{
- callbacks = callback;
- TRACE(trace_gdb, ("sim_set_callbacks called\n"));
-}
-
/****/
void *