summaryrefslogtreecommitdiff
path: root/gdb/infrun.c
diff options
context:
space:
mode:
authorVladimir Prus <vladimir@codesourcery.com>2008-01-21 16:34:00 +0000
committerVladimir Prus <vladimir@codesourcery.com>2008-01-21 16:34:00 +0000
commit4b89e666afd487f89f043ad6a3dac0994f79eeb1 (patch)
treef01acd94fc0497803209cb9a8f2337f8472f941d /gdb/infrun.c
parenta9a5a61c909dadb2382bb6471da3c69dfd2f339f (diff)
downloadgdb-4b89e666afd487f89f043ad6a3dac0994f79eeb1.tar.gz
* infrun.c (handle_inferior_event): If
we failed to remove breakpoints, error, don't try to increment PC by hand.
Diffstat (limited to 'gdb/infrun.c')
-rw-r--r--gdb/infrun.c19
1 files changed, 1 insertions, 18 deletions
diff --git a/gdb/infrun.c b/gdb/infrun.c
index 4dd49f6f909..d28d43fb092 100644
--- a/gdb/infrun.c
+++ b/gdb/infrun.c
@@ -1777,24 +1777,7 @@ handle_inferior_event (struct execution_control_state *ecs)
process until the child exits (well, okay, not
then either :-) or execs. */
if (remove_status != 0)
- {
- /* FIXME! This is obviously non-portable! */
- write_pc_pid (stop_pc + 4, ecs->ptid);
- /* We need to restart all the threads now,
- * unles we're running in scheduler-locked mode.
- * Use currently_stepping to determine whether to
- * step or continue.
- */
- /* FIXME MVS: is there any reason not to call resume()? */
- if (scheduler_mode == schedlock_on)
- target_resume (ecs->ptid,
- currently_stepping (ecs), TARGET_SIGNAL_0);
- else
- target_resume (RESUME_ALL,
- currently_stepping (ecs), TARGET_SIGNAL_0);
- prepare_to_wait (ecs);
- return;
- }
+ error (_("Cannot step over breakpoint hit in wrong thread"));
else
{ /* Single step */
if (!ptid_equal (inferior_ptid, ecs->ptid))