aboutsummaryrefslogtreecommitdiff
path: root/gdb/event-loop.c
diff options
context:
space:
mode:
authorElena Zannoni <ezannoni@kwikemart.cygnus.com>2000-02-21 15:56:37 +0000
committerElena Zannoni <ezannoni@kwikemart.cygnus.com>2000-02-21 15:56:37 +0000
commit750334d7543e810f17faa353e97c1a25217b9053 (patch)
treea7ecdb344c6ba4ae8eee21d99b6f3bd24f6c6046 /gdb/event-loop.c
parentf6af82bd4470673eef9562d4ed3a2717c1d749ab (diff)
downloadgdb-750334d7543e810f17faa353e97c1a25217b9053.zip
gdb-750334d7543e810f17faa353e97c1a25217b9053.tar.gz
gdb-750334d7543e810f17faa353e97c1a25217b9053.tar.bz2
2000-02-21 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
From Philippe De Muyter <phdm@macqel.be> * event-loop.c (handle_file_event): In case of poll, enable printing of informational message if an error/exception is detected on the file descriptor.
Diffstat (limited to 'gdb/event-loop.c')
-rw-r--r--gdb/event-loop.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/gdb/event-loop.c b/gdb/event-loop.c
index 1915156..dd849df 100644
--- a/gdb/event-loop.c
+++ b/gdb/event-loop.c
@@ -697,12 +697,12 @@ handle_file_event (int event_file_desc)
{
/* Work in progress. We may need to tell somebody what
kind of error we had. */
- /*if (error_mask_returned & POLLHUP)
- printf_unfiltered ("Hangup detected on fd %d\n", file_ptr->fd);
- if (error_mask_returned & POLLERR)
- printf_unfiltered ("Error detected on fd %d\n", file_ptr->fd);
- if (error_mask_returned & POLLNVAL)
- printf_unfiltered ("Invalid fd %d\n", file_ptr->fd); */
+ if (error_mask_returned & POLLHUP)
+ printf_unfiltered ("Hangup detected on fd %d\n", file_ptr->fd);
+ if (error_mask_returned & POLLERR)
+ printf_unfiltered ("Error detected on fd %d\n", file_ptr->fd);
+ if (error_mask_returned & POLLNVAL)
+ printf_unfiltered ("Invalid or non-`poll'able fd %d\n", file_ptr->fd);
file_ptr->error = 1;
}
else