Fixed bug in GDB Connection::read() function, where timeouts where being incorrectly treated as interrupts.
This commit is contained in:
@@ -200,10 +200,12 @@ namespace Bloom::DebugServer::Gdb
|
||||
|
||||
const auto eventFileDescriptor = this->epollInstance.waitForEvent(timeout);
|
||||
|
||||
if (
|
||||
!eventFileDescriptor.has_value()
|
||||
|| eventFileDescriptor.value() == this->interruptEventNotifier.getFileDescriptor()
|
||||
) {
|
||||
if (!eventFileDescriptor.has_value()) {
|
||||
// Timed out
|
||||
return output;
|
||||
}
|
||||
|
||||
if (eventFileDescriptor.value() == this->interruptEventNotifier.getFileDescriptor()) {
|
||||
// Interrupted
|
||||
this->interruptEventNotifier.clear();
|
||||
throw DebugServerInterrupted();
|
||||
|
||||
Reference in New Issue
Block a user