* inf-loop.c (inferior_event_handler): Don't include remote.h.
authorPedro Alves <palves@redhat.com>
Fri, 14 Mar 2008 08:01:28 +0000 (08:01 +0000)
committerPedro Alves <palves@redhat.com>
Fri, 14 Mar 2008 08:01:28 +0000 (08:01 +0000)
Call target_stop in the INF_QUIT_REQ case.
* Makefile.in (inf-loop.o): Update.

gdb/ChangeLog
gdb/inf-loop.c

index 3f7b0a80884d931b30fe2b65f59f568384a12c2e..ffa39094bfa125aa12fc0f8e55256f787fb2d550 100644 (file)
@@ -1,3 +1,9 @@
+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>
 
        * top.c (execute_command): Enable break, info and interrupt
index b6f8bb8d728556fb96b170b76003357d3a53b09c..5c49177cd83c3a4e62859807f84272f825e6ad97 100644 (file)
@@ -23,7 +23,6 @@
 #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);
@@ -83,11 +82,8 @@ inferior_event_handler (enum inferior_event_type event_type,
       do_all_intermediate_continuations ();
       break;
 
-    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);
+    case INF_QUIT_REQ:
+      target_stop ();
       break;
 
     case INF_TIMER: