From: Doug Evans Date: Mon, 25 Aug 2014 19:19:01 +0000 (-0700) Subject: linux-nat.c (linux_nat_close): Don't pass NULL for "this". X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=9debeba0eda35fb62a0ef76ef4f1019b0d2b649e;p=binutils-gdb.git 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. --- 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);