aboutsummaryrefslogtreecommitdiff
path: root/gdb/infrun.c
diff options
context:
space:
mode:
authorSteve Chamberlain <sac@cygnus>1993-10-07 23:21:02 +0000
committerSteve Chamberlain <sac@cygnus>1993-10-07 23:21:02 +0000
commit3f0184acb02f2a390e7d7a4c34594a55d5d99963 (patch)
tree4e438c73c5b1351cd139d233f4ebedcfee710e23 /gdb/infrun.c
parentfb32909add6f1c2bfac2133d41ff1f399bc40207 (diff)
downloadfsf-binutils-gdb-3f0184acb02f2a390e7d7a4c34594a55d5d99963.zip
fsf-binutils-gdb-3f0184acb02f2a390e7d7a4c34594a55d5d99963.tar.gz
fsf-binutils-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/infrun.c')
-rw-r--r--gdb/infrun.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/infrun.c b/gdb/infrun.c
index 84ccf93..e32d705 100644
--- a/gdb/infrun.c
+++ b/gdb/infrun.c
@@ -1308,7 +1308,7 @@ normal_stop ()
/* Make sure that the current_frame's pc is correct. This
is a correction for setting up the frame info before doing
DECR_PC_AFTER_BREAK */
- if (target_has_execution)
+ if (target_has_execution && get_current_frame())
(get_current_frame ())->pc = read_pc ();
if (breakpoints_failed)