Added ResponsePacket constructor with string param

This commit is contained in:
Nav
2022-04-06 17:10:57 +01:00
parent 203b6ff86f
commit 7fdfa389da
4 changed files with 8 additions and 6 deletions

View File

@@ -84,9 +84,8 @@ namespace Bloom::DebugServer::Gdb::CommandPackets
registers.insert(registers.end(), reg.value.begin(), reg.value.end());
}
auto responseRegisters = Packet::toHex(registers);
debugSession.connection.writePacket(
ResponsePacket(std::vector<unsigned char>(responseRegisters.begin(), responseRegisters.end()))
ResponsePacket(Packet::toHex(registers))
);
} catch (const Exception& exception) {