GNU Binutils with patches for OS216
Révision | 7a8f01926d825e88f3efd881c5fb7ccdd8c78d4d (tree) |
---|---|
l'heure | 2006-09-16 07:51:33 |
Auteur | Nick Roberts <nickrob@snap...> |
Commiter | Nick Roberts |
(linux_test_for_tracefork): Re-insert call to
my_waitpid (removed inadvertantly).
(linux_nat_detach): Call init_lwp_list for asynchronous case too.
@@ -278,6 +278,7 @@ linux_test_for_tracefork (int original_pid) | ||
278 | 278 | ret = ptrace (PTRACE_KILL, second_pid, 0, 0); |
279 | 279 | if (ret != 0) |
280 | 280 | warning (_("linux_test_for_tracefork: failed to kill second child")); |
281 | + my_waitpid (second_pid, &status, 0); | |
281 | 282 | } |
282 | 283 | } |
283 | 284 | else |
@@ -1107,15 +1108,15 @@ linux_nat_detach (char *args, int from_tty) | ||
1107 | 1108 | if (!target_can_async_p ()) |
1108 | 1109 | { |
1109 | 1110 | iterate_over_lwps (detach_callback, NULL); |
1110 | - | |
1111 | + | |
1111 | 1112 | /* Only the initial process should be left right now. */ |
1112 | 1113 | gdb_assert (num_lwps == 1); |
1114 | + } | |
1113 | 1115 | |
1114 | - trap_ptid = null_ptid; | |
1116 | + trap_ptid = null_ptid; | |
1115 | 1117 | |
1116 | - /* Destroy LWP info; it's no longer valid. */ | |
1117 | - init_lwp_list (); | |
1118 | - } | |
1118 | + /* Destroy LWP info; it's no longer valid. */ | |
1119 | + init_lwp_list (); | |
1119 | 1120 | |
1120 | 1121 | /* Restore the original signal mask. */ |
1121 | 1122 | sigprocmask (SIG_SETMASK, &normal_mask, NULL); |