diff options
author | Jim Kingdon <jkingdon@engr.sgi.com> | 1993-10-22 00:53:32 +0000 |
---|---|---|
committer | Jim Kingdon <jkingdon@engr.sgi.com> | 1993-10-22 00:53:32 +0000 |
commit | c853c90d12bf88c246e7e2234e24257ab6ff6129 (patch) | |
tree | af4b9c6932eb3e89039fc6916fb336c83caafdac /gdb | |
parent | f7fa951fd09013c37897ce63dd2efff3847fb5d8 (diff) | |
download | gdb-c853c90d12bf88c246e7e2234e24257ab6ff6129.zip gdb-c853c90d12bf88c246e7e2234e24257ab6ff6129.tar.gz gdb-c853c90d12bf88c246e7e2234e24257ab6ff6129.tar.bz2 |
* sh-tdep.c (sim_load): Add function.
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/sh-tdep.c | 15 |
2 files changed, 18 insertions, 2 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 85fa9bd..2851017 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,7 @@ +Thu Oct 21 12:23:12 1993 Jim Kingdon (kingdon@lioth.cygnus.com) + + * sh-tdep.c (sim_load): Add function. + Thu Oct 21 15:58:48 1993 david d `zoo' zuhn (zoo@rtl.cygnus.com) * remote-mips.c (mips_wait): add pid argument. @@ -24,6 +28,7 @@ Thu Oct 21 12:23:12 1993 Jim Kingdon (kingdon@lioth.cygnus.com) * environ.c: Include gdbcore.h. Only include defs.h once. (set_in_environ): Cast const char * to char * when passing to set_gnutarget. + * Makefile.in: Update dependencies to reflect all these new includes. Remove unused variables: * printcmd.c (printf_command): args_to_vprintf. * coffread.c (coff_symfile_init): strsection. diff --git a/gdb/sh-tdep.c b/gdb/sh-tdep.c index 9a60489..5b89780 100644 --- a/gdb/sh-tdep.c +++ b/gdb/sh-tdep.c @@ -241,8 +241,19 @@ pop_frame () set_current_frame (create_new_frame (read_register (FP_REGNUM), read_pc ())); } - - + +/* This doesn't quite fit either in the simulator or in gdb proper. + Perhaps the simulator could return 1 to mean it loaded it and 0 to + mean "you deal with it, caller". */ + +int +sim_load (abfd, prog) +bfd *abfd; +char *prog; +{ + return sim_load_standard (abfd); +} + _initialize_sh_tdep () { extern int sim_memory_size; |