mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-23 11:39:26 +08:00
gdb_do_one_event: use integer test syntax
Timeout is an int, not a bool.
This commit is contained in:
@ -234,8 +234,8 @@ gdb_do_one_event (int mstimeout)
|
|||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!mstimeout)
|
if (mstimeout == 0)
|
||||||
return 0; /* Null timeout: do not wait for an event. */
|
return 0; /* 0ms timeout: do not wait for an event. */
|
||||||
|
|
||||||
/* Block waiting for a new event. If gdb_wait_for_event returns -1,
|
/* 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
|
we should get out because this means that there are no event
|
||||||
|
Reference in New Issue
Block a user