This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
garbage collect INF_ERROR
- From: Pedro Alves <pedro at codesourcery dot com>
- To: gdb-patches at sourceware dot org
- Date: Mon, 30 May 2011 21:55:11 +0100
- Subject: garbage collect INF_ERROR
Applied.
--
Pedro Alves
2011-05-30 Pedro Alves <pedro@codesourcery.com>
gdb/
* target.h (enum inferior_event_type): Delete INF_ERROR.
* inf-loop.c (inferior_event_handler): Don't handle INF_ERROR.
---
gdb/inf-loop.c | 8 --------
gdb/target.h | 2 --
2 files changed, 10 deletions(-)
Index: src/gdb/target.h
===================================================================
--- src.orig/gdb/target.h 2011-05-26 18:34:22.000000000 +0100
+++ src/gdb/target.h 2011-05-30 21:22:43.434987523 +0100
@@ -206,8 +206,6 @@ enum inferior_event_type
/* Process a normal inferior event which will result in target_wait
being called. */
INF_REG_EVENT,
- /* Deal with an error on the inferior. */
- INF_ERROR,
/* We are called because a timer went off. */
INF_TIMER,
/* We are called to do stuff after the inferior stops. */
Index: src/gdb/inf-loop.c
===================================================================
--- src.orig/gdb/inf-loop.c 2011-05-30 21:22:15.000000000 +0100
+++ src/gdb/inf-loop.c 2011-05-30 21:23:16.184987511 +0100
@@ -51,14 +51,6 @@ inferior_event_handler (enum inferior_ev
switch (event_type)
{
- case INF_ERROR:
- printf_unfiltered (_("error detected from target.\n"));
- pop_all_targets_above (file_stratum, 0);
- discard_all_intermediate_continuations ();
- discard_all_continuations ();
- async_enable_stdin ();
- break;
-
case INF_REG_EVENT:
/* Use catch errors for now, until the inner layers of
fetch_inferior_event (i.e. readchar) can return meaningful