2011-12-14 Pedro Alves <pedro@codesourcery.com>
authorPedro Alves <palves@redhat.com>
Wed, 14 Dec 2011 17:33:24 +0000 (17:33 +0000)
committerPedro Alves <palves@redhat.com>
Wed, 14 Dec 2011 17:33:24 +0000 (17:33 +0000)
* linux-low.c (linux_detach_one_lwp): Call
the_low_target.prepare_to_resume before detaching.

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

index d2951605da6575cf9b52276ad4d6db4450c2ffcc..c7ceba3839be8f8657cefb4ebc011a741fda8121 100644 (file)
@@ -1,3 +1,8 @@
+2011-12-14  Pedro Alves  <pedro@codesourcery.com>
+
+       * linux-low.c (linux_detach_one_lwp): Call
+       the_low_target.prepare_to_resume before detaching.
+
 2011-12-14  Yao Qi  <yao@codesourcery.com>
 
        * tracepoint.c (gdb_ust_thread): Don't ignore return value
index 8afbc8b9cfa4afe6fceda627914fc6f95c093995..43d88fa01e2eb8b3f118d104ddbbe88a6a24c0cb 100644 (file)
@@ -918,6 +918,8 @@ linux_detach_one_lwp (struct inferior_list_entry *entry, void *args)
                           get_lwp_thread (lwp));
 
   /* Finally, let it resume.  */
+  if (the_low_target.prepare_to_resume != NULL)
+    the_low_target.prepare_to_resume (lwp);
   ptrace (PTRACE_DETACH, lwpid_of (lwp), 0, 0);
 
   delete_lwp (lwp);