Handle UI's terminal closing
authorPedro Alves <palves@redhat.com>
Tue, 21 Jun 2016 00:11:54 +0000 (01:11 +0100)
committerPedro Alves <palves@redhat.com>
Tue, 21 Jun 2016 00:11:54 +0000 (01:11 +0100)
commit07169ff772077f566c6540f623d7d609babc4c81
tree191ed8266e613017d9341c83976c89f4809cc07b
parent98d9f24ed15c5ca33bff06647d87b85e22e586d2
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.
gdb/ChangeLog
gdb/event-top.c
gdb/top.c
gdb/top.h
This page took 0.031911 seconds and 4 git commands to generate.