forked from Imagelibrary/binutils-gdb
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user