mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-03 21:34:46 +08:00
Use warning in event-loop
Change event-loop.c to avoid printf_unfiltered in favor of warning. warning is aleady available to code in gdbsupport/. gdb/ChangeLog 2020-04-13 Tom Tromey <tom@tromey.com> * event-loop.c (handle_file_event): Use warning, not printf_unfiltered.
This commit is contained in:
@ -1,3 +1,8 @@
|
||||
2020-04-13 Tom Tromey <tom@tromey.com>
|
||||
|
||||
* event-loop.c (handle_file_event): Use warning, not
|
||||
printf_unfiltered.
|
||||
|
||||
2020-04-13 Tom Tromey <tom@tromey.com>
|
||||
|
||||
* event-loop.c: Include <chrono>.
|
||||
|
@ -616,11 +616,10 @@ handle_file_event (file_handler *file_ptr, int ready_mask)
|
||||
/* Work in progress. We may need to tell somebody
|
||||
what kind of error we had. */
|
||||
if (mask & POLLERR)
|
||||
printf_unfiltered (_("Error detected on fd %d\n"),
|
||||
file_ptr->fd);
|
||||
warning (_("Error detected on fd %d"), file_ptr->fd);
|
||||
if (mask & POLLNVAL)
|
||||
printf_unfiltered (_("Invalid or non-`poll'able fd %d\n"),
|
||||
file_ptr->fd);
|
||||
warning (_("Invalid or non-`poll'able fd %d"),
|
||||
file_ptr->fd);
|
||||
file_ptr->error = 1;
|
||||
}
|
||||
else
|
||||
@ -634,8 +633,8 @@ handle_file_event (file_handler *file_ptr, int ready_mask)
|
||||
{
|
||||
if (ready_mask & GDB_EXCEPTION)
|
||||
{
|
||||
printf_unfiltered (_("Exception condition detected "
|
||||
"on fd %d\n"), file_ptr->fd);
|
||||
warning (_("Exception condition detected on fd %d"),
|
||||
file_ptr->fd);
|
||||
file_ptr->error = 1;
|
||||
}
|
||||
else
|
||||
|
Reference in New Issue
Block a user