Change detach_breakpoints to take a ptid instead of a pid
[deliverable/binutils-gdb.git] / gdb / inf-ttrace.c
index ddcbd428b8b15c0e53b1140adf55f139724599f2..2b9e7f536de6e83fd04a661ccd12f36fd91cce86 100644 (file)
@@ -457,7 +457,7 @@ inf_ttrace_follow_fork (struct target_ops *ops, int follow_child)
       inf->pspace = parent_inf->pspace;
       inf->aspace = parent_inf->aspace;
       copy_terminal_info (inf, parent_inf);
-      detach_breakpoints (pid);
+      detach_breakpoints (ptid_build (pid, lwpid, 0));
 
       target_terminal_ours ();
       fprintf_unfiltered (gdb_stdlog,
@@ -471,7 +471,7 @@ inf_ttrace_follow_fork (struct target_ops *ops, int follow_child)
         of fork events, we do not need to do this, because breakpoints
         should have already been removed earlier.  */
       if (tts.tts_event == TTEVT_VFORK)
-       detach_breakpoints (fpid);
+       detach_breakpoints (ptid_build (fpid, flwpid, 0));
 
       target_terminal_ours ();
       fprintf_unfiltered (gdb_stdlog,
This page took 0.02857 seconds and 4 git commands to generate.