• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
Aucun tag

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

GNU Binutils with patches for OS216


Commit MetaInfo

Révision7a8f01926d825e88f3efd881c5fb7ccdd8c78d4d (tree)
l'heure2006-09-16 07:51:33
AuteurNick Roberts <nickrob@snap...>
CommiterNick Roberts

Message de Log

(linux_test_for_tracefork): Re-insert call to
my_waitpid (removed inadvertantly).
(linux_nat_detach): Call init_lwp_list for asynchronous case too.

Change Summary

Modification

--- a/gdb/linux-nat.c
+++ b/gdb/linux-nat.c
@@ -278,6 +278,7 @@ linux_test_for_tracefork (int original_pid)
278278 ret = ptrace (PTRACE_KILL, second_pid, 0, 0);
279279 if (ret != 0)
280280 warning (_("linux_test_for_tracefork: failed to kill second child"));
281+ my_waitpid (second_pid, &status, 0);
281282 }
282283 }
283284 else
@@ -1107,15 +1108,15 @@ linux_nat_detach (char *args, int from_tty)
11071108 if (!target_can_async_p ())
11081109 {
11091110 iterate_over_lwps (detach_callback, NULL);
1110-
1111+
11111112 /* Only the initial process should be left right now. */
11121113 gdb_assert (num_lwps == 1);
1114+ }
11131115
1114- trap_ptid = null_ptid;
1116+ trap_ptid = null_ptid;
11151117
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 ();
11191120
11201121 /* Restore the original signal mask. */
11211122 sigprocmask (SIG_SETMASK, &normal_mask, NULL);