diff options
Diffstat (limited to 'gdb/infrun.c')
-rw-r--r-- | gdb/infrun.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/gdb/infrun.c b/gdb/infrun.c index 666308605af..9628170ba40 100644 --- a/gdb/infrun.c +++ b/gdb/infrun.c @@ -3497,11 +3497,9 @@ handle_inferior_event (struct execution_control_state *ecs) vfork follow are detached. */ if (ecs->ws.kind != TARGET_WAITKIND_VFORKED) { - int child_pid = ptid_get_pid (ecs->ws.value.related_pid); - /* This won't actually modify the breakpoint list, but will physically remove the breakpoints from the child. */ - detach_breakpoints (child_pid); + detach_breakpoints (ecs->ws.value.related_pid); } if (singlestep_breakpoints_inserted_p) |