This commit is contained in:
Nav
2022-03-19 15:17:07 +00:00
parent e65f89caf1
commit ab1a379efa
3 changed files with 9 additions and 7 deletions

View File

@@ -303,7 +303,7 @@ namespace Bloom::DebugServers::Gdb
);
}
int socketFileDescriptor;
int socketFileDescriptor = 0;
if ((socketFileDescriptor = ::socket(AF_INET, SOCK_STREAM, 0)) == 0) {
throw Exception("Failed to create socket file descriptor.");

View File

@@ -6,7 +6,7 @@
#include <queue>
#include <cstdint>
#include "../DebugServer.hpp"
#include "src/DebugServers/DebugServer.hpp"
#include "GdbDebugServerConfig.hpp"
@@ -14,9 +14,11 @@
#include "Signal.hpp"
#include "RegisterDescriptor.hpp"
#include "Feature.hpp"
#include "CommandPackets/CommandPacketFactory.hpp"
#include "src/Helpers/EventNotifier.hpp"
#include "src/Helpers/BiMap.hpp"
#include "CommandPackets/CommandPacketFactory.hpp"
#include "src/Targets/TargetRegister.hpp"
// Response packets