GNU Binutils with patches for OS216
修订版 | 4aea54ac94a2b105ff6d48208636ab4c47403ce2 (tree) |
---|---|
时间 | 2006-09-14 11:27:02 |
作者 | Nick Roberts <nickrob@snap...> |
Commiter | Nick Roberts |
(i386_linux_resume): Move async stuff for
i386_linux_resume into linux_nat_resume in linux-nat.c. This
file is now the same as for mainline.
@@ -26,8 +26,6 @@ | ||
26 | 26 | #include "regcache.h" |
27 | 27 | #include "target.h" |
28 | 28 | #include "linux-nat.h" |
29 | -#include "inf-loop.h" | |
30 | -#include "async-nat-inferior.h" | |
31 | 29 | |
32 | 30 | #include "gdb_assert.h" |
33 | 31 | #include "gdb_string.h" |
@@ -765,8 +763,6 @@ i386_linux_resume (ptid_t ptid, int step, enum target_signal signal) | ||
765 | 763 | |
766 | 764 | int request = PTRACE_CONT; |
767 | 765 | |
768 | - struct target_waitstatus status; | |
769 | - | |
770 | 766 | if (pid == -1) |
771 | 767 | /* Resume all threads. */ |
772 | 768 | /* I think this only gets used in the non-threaded case, where "resume |
@@ -817,23 +813,6 @@ i386_linux_resume (ptid_t ptid, int step, enum target_signal signal) | ||
817 | 813 | |
818 | 814 | if (ptrace (request, pid, 0, target_signal_to_host (signal)) == -1) |
819 | 815 | perror_with_name (("ptrace")); |
820 | - | |
821 | - status.kind = TARGET_WAITKIND_SPURIOUS; | |
822 | - gdb_process_events (gdb_status, &status, 0, 0); | |
823 | - | |
824 | - if (gdb_post_pending_event ()) | |
825 | - { | |
826 | - /* QUESTION: Do I need to lie about target_executing here? */ | |
827 | - if (target_is_async_p ()) | |
828 | - target_executing = 1; | |
829 | - return; | |
830 | - } | |
831 | - | |
832 | - if (target_can_async_p ()) | |
833 | - target_async (inferior_event_handler, 0); | |
834 | - | |
835 | - if (target_is_async_p ()) | |
836 | - target_executing = 1; | |
837 | 816 | } |
838 | 817 | |
839 | 818 | static void (*super_post_startup_inferior) (ptid_t ptid); |