aboutsummaryrefslogtreecommitdiff
path: root/gdb/linux-nat.c
diff options
context:
space:
mode:
authorDoug Evans <dje@google.com>2014-08-25 12:19:01 -0700
committerDoug Evans <dje@google.com>2014-08-25 12:19:01 -0700
commit9debeba0eda35fb62a0ef76ef4f1019b0d2b649e (patch)
tree4afe143cc208c7227eca17489e4f82ff8ee5deb9 /gdb/linux-nat.c
parent428fc5fcd14ec655df8db35496f4c4a76ecab57c (diff)
downloadgdb-9debeba0eda35fb62a0ef76ef4f1019b0d2b649e.zip
gdb-9debeba0eda35fb62a0ef76ef4f1019b0d2b649e.tar.gz
gdb-9debeba0eda35fb62a0ef76ef4f1019b0d2b649e.tar.bz2
linux-nat.c (linux_nat_close): Don't pass NULL for "this".
gdb/ChangeLog: * linux-nat.c (linux_nat_close): Don't pass NULL for "this". Pass NULL instead of 0 for context pointer.
Diffstat (limited to 'gdb/linux-nat.c')
-rw-r--r--gdb/linux-nat.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/linux-nat.c b/gdb/linux-nat.c
index 1e8991d..0898442 100644
--- a/gdb/linux-nat.c
+++ b/gdb/linux-nat.c
@@ -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);