diff options
author | Andrew Cagney <cagney@redhat.com> | 1997-08-25 23:14:25 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 1997-08-25 23:14:25 +0000 |
commit | 247fccdeb54a09a14287b2e829511803ad9d7cc1 (patch) | |
tree | c992df7132ca0c315cbcfd5ad81bbc4f16675936 /sim/erc32 | |
parent | 04f295b64859a6c6b01739fc4dd7fddce42db8d9 (diff) | |
download | gdb-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/erc32')
-rw-r--r-- | sim/erc32/ChangeLog | 22 | ||||
-rw-r--r-- | sim/erc32/interf.c | 13 |
2 files changed, 30 insertions, 5 deletions
diff --git a/sim/erc32/ChangeLog b/sim/erc32/ChangeLog index 8814350..f9b8f67 100644 --- a/sim/erc32/ChangeLog +++ b/sim/erc32/ChangeLog @@ -1,3 +1,25 @@ +Mon Aug 25 17:50:22 1997 Andrew Cagney <cagney@b1.cygnus.com> + + * configure: Regenerated to track ../common/aclocal.m4 changes. + * config.in: Ditto. + +Mon Aug 25 16:19:49 1997 Andrew Cagney <cagney@b1.cygnus.com> + + * interf.c (sim_open): Add ABFD argument. Change ARGV to PARGV. + +Mon Jun 30 11:45:25 1997 Doug Evans <dje@canuck.cygnus.com> + + * Makefile.in (install-sis): Change $(srcdir)/sis to sis. + +Wed May 28 09:46:13 1997 Andrew Cagney <cagney@b1.cygnus.com> + + * interf.c (sim_set_callbacks): Drop SD argument - not applicable. + (sim_open): Add callback arg, save it. + +Thu Apr 24 00:39:51 1997 Doug Evans <dje@canuck.cygnus.com> + + * configure: Regenerated to track ../common/aclocal.m4 changes. + Tue Apr 22 11:05:01 1997 Doug Evans <dje@canuck.cygnus.com> * interf.c (sim_open): Undo patch to add -E support. diff --git a/sim/erc32/interf.c b/sim/erc32/interf.c index 2a3f331..0470558 100644 --- a/sim/erc32/interf.c +++ b/sim/erc32/interf.c @@ -115,7 +115,7 @@ run_sim(sregs, go, icount, dis) if (sis_verbose) (*sim_callback->printf_filtered) (sim_callback, "SW BP hit at %x\n", sregs->pc); - sim_stop(); + sim_halt(); restore_stdio(); clearerr(stdin); return (BPT_HIT); @@ -133,7 +133,7 @@ run_sim(sregs, go, icount, dis) go = icount = 0; } } - sim_stop(); + sim_halt(); sregs->tottime += time(NULL) - sregs->starttime; restore_stdio(); clearerr(stdin); @@ -155,8 +155,7 @@ run_sim(sregs, go, icount, dis) } void -sim_set_callbacks (sd, ptr) - SIM_DESC sd; +sim_set_callbacks (ptr) host_callback *ptr; { sim_callback = ptr; @@ -169,8 +168,10 @@ sim_size (memsize) } SIM_DESC -sim_open(kind, argv) +sim_open (kind, callback, abfd, argv) SIM_OPEN_KIND kind; + struct host_callback_struct *callback; + struct _bfd *abfd; char **argv; { @@ -180,6 +181,8 @@ sim_open(kind, argv) int grdl = 0; int freq = 15; + sim_callback = callback; + (*sim_callback->printf_filtered) (sim_callback, "\n SIS - SPARC instruction simulator %s\n", sis_version); (*sim_callback->printf_filtered) (sim_callback, " Bug-reports to Jiri Gaisler ESA/ESTEC (jgais@wd.estec.esa.nl)\n"); while (argv[argc]) |