aboutsummaryrefslogtreecommitdiff
path: root/gdbsupport
diff options
context:
space:
mode:
authorPatrick Monnerat <patrick@monnerat.net>2022-08-19 16:37:57 +0200
committerPatrick Monnerat <patrick@monnerat.net>2022-08-19 16:37:57 +0200
commit08b00371b5c4c22435834796b94e8892406d4ce0 (patch)
tree791d72ccfbcfe79afd94429e6a66d7534cc8ed8d /gdbsupport
parent37163dcf1a1b32115a49a51410e352366cc02fbc (diff)
downloadgdb-08b00371b5c4c22435834796b94e8892406d4ce0.zip
gdb-08b00371b5c4c22435834796b94e8892406d4ce0.tar.gz
gdb-08b00371b5c4c22435834796b94e8892406d4ce0.tar.bz2
gdb_do_one_event: use integer test syntax
Timeout is an int, not a bool.
Diffstat (limited to 'gdbsupport')
-rw-r--r--gdbsupport/event-loop.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdbsupport/event-loop.cc b/gdbsupport/event-loop.cc
index 1f01d73..9418855 100644
--- a/gdbsupport/event-loop.cc
+++ b/gdbsupport/event-loop.cc
@@ -234,8 +234,8 @@ gdb_do_one_event (int mstimeout)
return 1;
}
- if (!mstimeout)
- return 0; /* Null timeout: do not wait for an event. */
+ if (mstimeout == 0)
+ return 0; /* 0ms timeout: do not wait for an event. */
/* Block waiting for a new event. If gdb_wait_for_event returns -1,
we should get out because this means that there are no event