diff options
author | Andrew Cagney <cagney@redhat.com> | 1997-10-22 05:26:27 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 1997-10-22 05:26:27 +0000 |
commit | 9e03a68f136a021e7bfa9afb18ca4f170e949f80 (patch) | |
tree | 78c37915fae5528e6e3cba233bbecbd7c368fa39 /sim/arm | |
parent | 2328ef1c9815f27863ca176608f87cd4c2ba3665 (diff) | |
download | binutils-gdb-9e03a68f136a021e7bfa9afb18ca4f170e949f80.tar.gz |
Add LMA_P and DO_WRITE arguments to sim/common/sim-load.c:sim_load_file().
Update all simulators.
Clarify behavour of sim_load in remote-sim.h
Diffstat (limited to 'sim/arm')
-rw-r--r-- | sim/arm/ChangeLog | 13 | ||||
-rw-r--r-- | sim/arm/wrapper.c | 11 |
2 files changed, 21 insertions, 3 deletions
diff --git a/sim/arm/ChangeLog b/sim/arm/ChangeLog index 2686fbfea33..5f11bb348cb 100644 --- a/sim/arm/ChangeLog +++ b/sim/arm/ChangeLog @@ -1,3 +1,16 @@ +Wed Oct 22 14:43:00 1997 Andrew Cagney <cagney@b1.cygnus.com> + + * wrapper.c (sim_load): Pass lma_p and sim_write args to + sim_load_file. + +Fri Oct 3 09:28:00 1997 Andrew Cagney <cagney@b1.cygnus.com> + + * configure: Regenerated to track ../common/aclocal.m4 changes. + +Wed Sep 24 17:38:57 1997 Andrew Cagney <cagney@b1.cygnus.com> + + * configure: Regenerated to track ../common/aclocal.m4 changes. + Tue Sep 23 11:04:38 1997 Andrew Cagney <cagney@b1.cygnus.com> * configure: Regenerated to track ../common/aclocal.m4 changes. diff --git a/sim/arm/wrapper.c b/sim/arm/wrapper.c index 86be8c672b3..5c2eea0cfc4 100644 --- a/sim/arm/wrapper.c +++ b/sim/arm/wrapper.c @@ -175,11 +175,16 @@ sim_resume (sd, step, siggnal) } SIM_RC -sim_create_inferior (sd, argv, env) +sim_create_inferior (sd, abfd, argv, env) SIM_DESC sd; + struct _bfd *abfd; char **argv; char **env; { + if (abfd != NULL) + ARMul_SetPC (state, bfd_get_start_address (abfd)); + else + ARMul_SetPC (state, 0); /* ??? */ return SIM_RC_OK; } @@ -290,10 +295,10 @@ sim_load (sd, prog, abfd, from_tty) bfd *prog_bfd; prog_bfd = sim_load_file (sd, myname, sim_callback, prog, abfd, - sim_kind == SIM_OPEN_DEBUG); + sim_kind == SIM_OPEN_DEBUG, + 0, sim_write); if (prog_bfd == NULL) return SIM_RC_FAIL; - ARMul_SetPC (state, bfd_get_start_address (prog_bfd)); if (abfd == NULL) bfd_close (prog_bfd); return SIM_RC_OK; |