linux-nat.c (linux_nat_close): Don't pass NULL for "this".
authorDoug Evans <dje@google.com>
Mon, 25 Aug 2014 19:19:01 +0000 (12:19 -0700)
committerDoug Evans <dje@google.com>
Mon, 25 Aug 2014 19:19:01 +0000 (12:19 -0700)
gdb/ChangeLog:

* linux-nat.c (linux_nat_close): Don't pass NULL for "this".
Pass NULL instead of 0 for context pointer.

gdb/ChangeLog
gdb/linux-nat.c

index 4fd56ff..33b3c47 100644 (file)
@@ -1,3 +1,8 @@
+2014-08-25  Doug Evans  <dje@google.com>
+
+       * linux-nat.c (linux_nat_close): Don't pass NULL for "this".
+       Pass NULL instead of 0 for context pointer.
+
 2014-08-25  Yao Qi  <yao@codesourcery.com>
 
        * dwarf2read.c: Fix grammatical error.
index 1e8991d..0898442 100644 (file)
@@ -4813,8 +4813,8 @@ static void
 linux_nat_close (struct target_ops *self)
 {
   /* Unregister from the event loop.  */
-  if (linux_nat_is_async_p (NULL))
-    linux_nat_async (NULL, NULL, 0);
+  if (linux_nat_is_async_p (self))
+    linux_nat_async (self, NULL, NULL);
 
   if (linux_ops->to_close)
     linux_ops->to_close (linux_ops);