aboutsummaryrefslogtreecommitdiff
path: root/sim/arm/wrapper.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/arm/wrapper.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/arm/wrapper.c')
-rw-r--r--sim/arm/wrapper.c15
1 files changed, 12 insertions, 3 deletions
diff --git a/sim/arm/wrapper.c b/sim/arm/wrapper.c
index f1e6153..37a3723 100644
--- a/sim/arm/wrapper.c
+++ b/sim/arm/wrapper.c
@@ -146,6 +146,13 @@ sim_trace (sd)
return 1;
}
+int
+sim_stop (sd)
+ SIM_DESC sd;
+{
+ return 0;
+}
+
void
sim_resume (sd, step, siggnal)
SIM_DESC sd;
@@ -252,12 +259,15 @@ sim_fetch_register (sd, rn, memory)
SIM_DESC
-sim_open (kind, argv)
+sim_open (kind, ptr, abfd, argv)
SIM_OPEN_KIND kind;
+ host_callback *ptr;
+ struct _bfd *abfd;
char **argv;
{
sim_kind = kind;
myname = argv[0];
+ sim_callback = ptr;
return (SIM_DESC) 1;
}
@@ -327,8 +337,7 @@ sim_do_command (sd, cmd)
void
-sim_set_callbacks (sd, ptr)
- SIM_DESC sd;
+sim_set_callbacks (ptr)
host_callback *ptr;
{
sim_callback = ptr;