diff options
Diffstat (limited to 'gdb/event-top.c')
-rw-r--r-- | gdb/event-top.c | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/gdb/event-top.c b/gdb/event-top.c index a5f8c68be98..3f10b21280d 100644 --- a/gdb/event-top.c +++ b/gdb/event-top.c @@ -1137,12 +1137,16 @@ async_disconnect (gdb_client_data arg) exception_print (gdb_stderr, exception); } - try - { - pop_all_targets (); - } - catch (const gdb_exception &exception) + for (inferior *inf : all_inferiors ()) { + switch_to_inferior_no_thread (inf); + try + { + pop_all_targets (); + } + catch (const gdb_exception &exception) + { + } } signal (SIGHUP, SIG_DFL); /*FIXME: ??????????? */ |