* linux-low.c (linux_kill_one_lwp): Adjust kernel workaround to skip
authorDaniel Jacobowitz <drow@false.org>
Tue, 28 Jul 2009 17:44:29 +0000 (17:44 +0000)
committerDaniel Jacobowitz <drow@false.org>
Tue, 28 Jul 2009 17:44:29 +0000 (17:44 +0000)
the main thread again.

gdb/gdbserver/ChangeLog
gdb/gdbserver/linux-low.c

index 9336f6db4e7d9432c06068144649a42583cd416c..b878baf59f7c89816b68a0326016dc1ea23cd72d 100644 (file)
@@ -1,3 +1,8 @@
+2009-07-28  Daniel Jacobowitz  <dan@codesourcery.com>
+
+       * linux-low.c (linux_kill_one_lwp): Adjust kernel workaround to skip
+       the main thread again.
+
 2009-07-06  Aleksandar Ristovski  <aristovski@qnx.com>
 
        Adding Neutrino gdbserver.
index 5284a983971f7011b8fb005bfc9a5564d9338b4d..6d677f259e39a489cac8eb070aba3d2750276a31 100644 (file)
@@ -589,7 +589,7 @@ linux_kill_one_lwp (struct inferior_list_entry *entry, void *args)
      the children get a chance to be reaped, it will remain a zombie
      forever.  */
 
-  if (last_thread_of_process_p (thread))
+  if (lwpid_of (lwp) == pid)
     {
       if (debug_threads)
        fprintf (stderr, "lkop: is last of process %s\n",