aboutsummaryrefslogtreecommitdiff
path: root/gdb/inf-loop.c
diff options
context:
space:
mode:
authorPedro Alves <palves@redhat.com>2008-11-04 20:52:24 +0000
committerPedro Alves <palves@redhat.com>2008-11-04 20:52:24 +0000
commitd3fd534293b3e22ff1aac0e141bb22e99fbbe3c2 (patch)
treed385a0f37a1f84387b0d1b338b46c5c2b5b818a2 /gdb/inf-loop.c
parent1c9f699cd9c816946535115db84ec0d0ce6bf330 (diff)
downloadgdb-d3fd534293b3e22ff1aac0e141bb22e99fbbe3c2.zip
gdb-d3fd534293b3e22ff1aac0e141bb22e99fbbe3c2.tar.gz
gdb-d3fd534293b3e22ff1aac0e141bb22e99fbbe3c2.tar.bz2
* inf-loop.c (inferior_event_handler): On INF_ERROR and
INF_REG_EVENT throwing, don't call target_async or pop_target. Call pop_all_targets_above. * remote.c (remote_close): Call remote_terminal_ours. Don't call signal or target_async.
Diffstat (limited to 'gdb/inf-loop.c')
-rw-r--r--gdb/inf-loop.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/gdb/inf-loop.c b/gdb/inf-loop.c
index 8c2c282..2e0f4d2 100644
--- a/gdb/inf-loop.c
+++ b/gdb/inf-loop.c
@@ -50,8 +50,7 @@ inferior_event_handler (enum inferior_event_type event_type,
{
case INF_ERROR:
printf_unfiltered (_("error detected from target.\n"));
- target_async (NULL, 0);
- pop_target ();
+ pop_all_targets_above (file_stratum, 0);
discard_all_intermediate_continuations ();
discard_all_continuations ();
async_enable_stdin ();
@@ -65,8 +64,7 @@ inferior_event_handler (enum inferior_event_type event_type,
if (!catch_errors (fetch_inferior_event_wrapper,
client_data, "", RETURN_MASK_ALL))
{
- target_async (NULL, 0);
- pop_target ();
+ pop_all_targets_above (file_stratum, 0);
discard_all_intermediate_continuations ();
discard_all_continuations ();
async_enable_stdin ();