diff options
author | Pedro Alves <palves@redhat.com> | 2012-01-19 16:32:59 +0000 |
---|---|---|
committer | Pedro Alves <palves@redhat.com> | 2012-01-19 16:32:59 +0000 |
commit | 305436e07ac142e2cd8f9659bf8d6ad9630d5008 (patch) | |
tree | e286c155da31aad656b96c3233dd2757dd3c37b4 /gdb/linux-nat.c | |
parent | 2fc0fe4faa2bee97a91ad1948900778c459ce977 (diff) | |
download | gdb-305436e07ac142e2cd8f9659bf8d6ad9630d5008.zip gdb-305436e07ac142e2cd8f9659bf8d6ad9630d5008.tar.gz gdb-305436e07ac142e2cd8f9659bf8d6ad9630d5008.tar.bz2 |
2012-01-19 Pedro Alves <palves@redhat.com>
* 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.
Diffstat (limited to 'gdb/linux-nat.c')
-rw-r--r-- | gdb/linux-nat.c | 4 |
1 files changed, 2 insertions, 2 deletions
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); |