From: Elena Zannoni Date: Mon, 21 Feb 2000 15:56:37 +0000 (+0000) Subject: 2000-02-21 Elena Zannoni X-Git-Tag: gdb_5_0-2000-04-10-branchpoint~533 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=750334d7543e810f17faa353e97c1a25217b9053;p=platform%2Fupstream%2Fbinutils.git 2000-02-21 Elena Zannoni From Philippe De Muyter * 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. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index c362cc8..dcb4409 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,11 @@ +2000-02-21 Elena Zannoni + + From Philippe De Muyter + + * 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. + 2000-02-21 Jim Kingdon * MAINTAINERS (Misc): Clarify that yes, anyone can edit web pages. 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