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.
This commit is contained in:
Doug Evans 2014-08-25 12:19:01 -07:00
parent 428fc5fcd1
commit 9debeba0ed
2 changed files with 7 additions and 2 deletions

View 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.

View 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);