projects
/
binutils-gdb.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
37163dc
)
gdb_do_one_event: use integer test syntax
author
Patrick Monnerat
<patrick@monnerat.net>
Fri, 19 Aug 2022 14:37:57 +0000
(16:37 +0200)
committer
Patrick Monnerat
<patrick@monnerat.net>
Fri, 19 Aug 2022 14:37:57 +0000
(16:37 +0200)
Timeout is an int, not a bool.
gdbsupport/event-loop.cc
patch
|
blob
|
history
diff --git
a/gdbsupport/event-loop.cc
b/gdbsupport/event-loop.cc
index 1f01d73849f132857655c21115476389bb041bdb..941885529f13f3f395f7909af915d4192b15d277 100644
(file)
--- 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