diff options
author | Doug Evans <dje@google.com> | 2014-08-25 12:19:01 -0700 |
---|---|---|
committer | Doug Evans <dje@google.com> | 2014-08-25 12:19:01 -0700 |
commit | 9debeba0eda35fb62a0ef76ef4f1019b0d2b649e (patch) | |
tree | 4afe143cc208c7227eca17489e4f82ff8ee5deb9 | |
parent | 428fc5fcd14ec655df8db35496f4c4a76ecab57c (diff) | |
download | gdb-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.
-rw-r--r-- | gdb/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/linux-nat.c | 4 |
2 files changed, 7 insertions, 2 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 4fd56ff..33b3c47 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -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. 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); |