diff options
author | Steve Chamberlain <sac@cygnus> | 1993-10-07 23:21:02 +0000 |
---|---|---|
committer | Steve Chamberlain <sac@cygnus> | 1993-10-07 23:21:02 +0000 |
commit | 3f0184acb02f2a390e7d7a4c34594a55d5d99963 (patch) | |
tree | 4e438c73c5b1351cd139d233f4ebedcfee710e23 /gdb/remote-sim.c | |
parent | fb32909add6f1c2bfac2133d41ff1f399bc40207 (diff) | |
download | gdb-3f0184acb02f2a390e7d7a4c34594a55d5d99963.zip gdb-3f0184acb02f2a390e7d7a4c34594a55d5d99963.tar.gz gdb-3f0184acb02f2a390e7d7a4c34594a55d5d99963.tar.bz2 |
* h8300-tdep.c (sim_load, sim_kill, sim_open, sim_set_args):
New functions.
* infrun.c (normal_stop): Don't try and set the pc in the current
frame coredump if there isn't one.
* remote-sim.c (gdbsim_store_register): Don't
SWAP_TARGET_AND_HOST, sim_store_register takes bytes in raw order.
(gdbsim_wait): Set status with WSETSTOP.
* config/h8300/tm-h8300.h (sr_get_debug): Define
Diffstat (limited to 'gdb/remote-sim.c')
-rw-r--r-- | gdb/remote-sim.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/gdb/remote-sim.c b/gdb/remote-sim.c index 1da0172..fb1e57e 100644 --- a/gdb/remote-sim.c +++ b/gdb/remote-sim.c @@ -107,9 +107,7 @@ int regno; { /* FIXME: Until read_register() returns LONGEST, we have this. */ char value[MAX_REGISTER_RAW_SIZE]; - read_register_gen (regno, value); - SWAP_TARGET_AND_HOST (value, REGISTER_RAW_SIZE (regno)); sim_store_register (regno, value); if (sr_get_debug ()) { @@ -351,14 +349,10 @@ gdbsim_wait (status) { if (sr_get_debug ()) printf_filtered ("gdbsim_wait: "); -#if 1 - *status = sim_stop_signal (); -#else WSETSTOP (*status, sim_stop_signal ()); -#endif if (sr_get_debug ()) printf_filtered ("status %d\n", *status); - return 0; + return inferior_pid; } /* Get ready to modify the registers array. On machines which store |