aboutsummaryrefslogtreecommitdiff
path: root/gdb/python/py-utils.c
diff options
context:
space:
mode:
authorPatrick Monnerat <patrick@monnerat.net>2025-05-12 17:36:17 +0200
committerPatrick Monnerat <patrick@monnerat.net>2025-05-12 17:47:35 +0200
commit5cceef276f36de70ac286b46721568385a1422d7 (patch)
treeaeb31a7930506b0901afa1b4ab8d266e95e57503 /gdb/python/py-utils.c
parent4e16a470492e412b6652d1e992f49edbc8e90894 (diff)
downloadbinutils-5cceef276f36de70ac286b46721568385a1422d7.zip
binutils-5cceef276f36de70ac286b46721568385a1422d7.tar.gz
binutils-5cceef276f36de70ac286b46721568385a1422d7.tar.bz2
gdbsupport/event-loop: do not truncate poll timeouts to lower second
In update_wait_timeout function, microseconds were not taken into account in poll timeout computation, resulting in 100% cpu time consumption in the event loop while waiting for a sub-second timeout. The bug has been introduced in commit c2c6d25. This patch adds the microseconds converted to milliseconds in poll timeout computation. Conversion by excess (ceil) is performed to avoid the same problem with sub-millisecond timeouts too.
Diffstat (limited to 'gdb/python/py-utils.c')
0 files changed, 0 insertions, 0 deletions