diff options
author | Pedro Alves <palves@redhat.com> | 2008-03-14 15:14:49 +0000 |
---|---|---|
committer | Pedro Alves <palves@redhat.com> | 2008-03-14 15:14:49 +0000 |
commit | b18392efbed6c18ecb7430dee65308e96e35cbf7 (patch) | |
tree | 962999a09170fd7376bf3cc67e54131a64585050 | |
parent | 0aca9f07fab431ae87a9766241d4a15b22e56ed7 (diff) | |
download | gdb-b18392efbed6c18ecb7430dee65308e96e35cbf7.zip gdb-b18392efbed6c18ecb7430dee65308e96e35cbf7.tar.gz gdb-b18392efbed6c18ecb7430dee65308e96e35cbf7.tar.bz2 |
revert:
2008-03-14 Pedro Alves <pedro@codesourcery.com>
* inf-loop.c (inferior_event_handler): Don't include remote.h.
Call target_stop in the INF_QUIT_REQ case.
* Makefile.in (inf-loop.o): Update.
-rw-r--r-- | gdb/ChangeLog | 8 | ||||
-rw-r--r-- | gdb/inf-loop.c | 8 |
2 files changed, 14 insertions, 2 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index ffa3909..b444fb6 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,13 @@ 2008-03-14 Pedro Alves <pedro@codesourcery.com> + revert: + 2008-03-14 Pedro Alves <pedro@codesourcery.com> + * inf-loop.c (inferior_event_handler): Don't include remote.h. + Call target_stop in the INF_QUIT_REQ case. + * Makefile.in (inf-loop.o): Update. + +2008-03-14 Pedro Alves <pedro@codesourcery.com> + * inf-loop.c (inferior_event_handler): Don't include remote.h. Call target_stop in the INF_QUIT_REQ case. * Makefile.in (inf-loop.o): Update. diff --git a/gdb/inf-loop.c b/gdb/inf-loop.c index 5c49177..b6f8bb8 100644 --- a/gdb/inf-loop.c +++ b/gdb/inf-loop.c @@ -23,6 +23,7 @@ #include "event-loop.h" #include "event-top.h" #include "inf-loop.h" +#include "remote.h" #include "exceptions.h" static int fetch_inferior_event_wrapper (gdb_client_data client_data); @@ -82,8 +83,11 @@ inferior_event_handler (enum inferior_event_type event_type, do_all_intermediate_continuations (); break; - case INF_QUIT_REQ: - target_stop (); + case INF_QUIT_REQ: + /* FIXME: ezannoni 1999-10-04. This call should really be a + target vector entry, so that it can be used for any kind of + targets. */ + async_remote_interrupt_twice (NULL); break; case INF_TIMER: |