mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-08-06 06:45:56 +08:00
Handle UI's terminal closing
Without this, GDB exits if a secondary UIs terminal/input stream is closed: $ ./gdb -ex "new-ui mi /dev/pts/6" New UI allocated <<< close /dev/pts/6 (gdb) Error detected on fd 9 $ We want that for the main UI, but not secondary UIs. gdb/ChangeLog: 2016-06-21 Pedro Alves <palves@redhat.com> * event-top.c (stdin_event_handler): Don't quit gdb if it was a secondary UI's input stream that closed. Instead, just delete the UI.
This commit is contained in:
@ -175,6 +175,7 @@ extern void switch_thru_all_uis_next (struct switch_thru_all_uis *state);
|
||||
|
||||
/* Create a new UI. */
|
||||
extern struct ui *new_ui (FILE *instream, FILE *outstream, FILE *errstream);
|
||||
extern void delete_ui (struct ui *todel);
|
||||
|
||||
/* Cleanup that restores the current UI. */
|
||||
extern void restore_ui_cleanup (void *data);
|
||||
|
Reference in New Issue
Block a user