From 305436e07ac142e2cd8f9659bf8d6ad9630d5008 Mon Sep 17 00:00:00 2001 From: Pedro Alves Date: Thu, 19 Jan 2012 16:32:59 +0000 Subject: 2012-01-19 Pedro Alves * linux-nat.c (linux_nat_close): Call linux_nat_is_async_p and linux_nat_async directly instead of going through the target vector. * target.c (unpush_target): Close target after unpushing it, not before. --- gdb/linux-nat.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gdb/linux-nat.c') diff --git a/gdb/linux-nat.c b/gdb/linux-nat.c index f6b36a2..30f9062 100644 --- a/gdb/linux-nat.c +++ b/gdb/linux-nat.c @@ -5717,8 +5717,8 @@ static void linux_nat_close (int quitting) { /* Unregister from the event loop. */ - if (target_is_async_p ()) - target_async (NULL, 0); + if (linux_nat_is_async_p ()) + linux_nat_async (NULL, 0); if (linux_ops->to_close) linux_ops->to_close (quitting); -- cgit v1.1