diff options
Diffstat (limited to 'gdb/monitor.c')
-rw-r--r-- | gdb/monitor.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/gdb/monitor.c b/gdb/monitor.c index 60db1dc..1b41a16 100644 --- a/gdb/monitor.c +++ b/gdb/monitor.c @@ -2007,7 +2007,8 @@ monitor_create_inferior (struct target_ops *ops, char *exec_file, first_time = 1; clear_proceed_status (); - write_pc (bfd_get_start_address (exec_bfd)); + regcache_write_pc (get_current_regcache (), + bfd_get_start_address (exec_bfd)); } /* Clean up when a program exits. @@ -2155,7 +2156,8 @@ monitor_load (char *file, int from_tty) /* Finally, make the PC point at the start address */ if (exec_bfd) - write_pc (bfd_get_start_address (exec_bfd)); + regcache_write_pc (get_current_regcache (), + bfd_get_start_address (exec_bfd)); /* There used to be code here which would clear inferior_ptid and call clear_symtab_users. None of that should be necessary: |