From 9debeba0eda35fb62a0ef76ef4f1019b0d2b649e Mon Sep 17 00:00:00 2001 From: Doug Evans Date: Mon, 25 Aug 2014 12:19:01 -0700 Subject: [PATCH] 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. --- gdb/ChangeLog | 5 +++++ gdb/linux-nat.c | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 4fd56fff30c..33b3c47e4b4 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2014-08-25 Doug Evans + + * 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 * dwarf2read.c: Fix grammatical error. diff --git a/gdb/linux-nat.c b/gdb/linux-nat.c index 1e8991dca7a..0898442f6d3 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); -- 2.30.2