Properly parse incoming hio packet

This also does kind of a hacky way of sending HIO requests, since we
don't have a direct way of signaling a request should be sent like the
Rosalina implementation.

To improve this, it could probably do some kind of signal sending which
the main run loop handles instead of GDBStub::HandlePacket();
This commit is contained in:
Ian Chamberlain
2022-12-03 16:09:13 -05:00
parent 6f23ee43ae
commit 7de1bf3746
4 changed files with 94 additions and 57 deletions

View File

@ -1,3 +1,7 @@
// Copyright 2022 Citra Emulator Project
// Licensed under GPLv2 or any later version
// Refer to the license.txt file included.
#pragma once
#include "common/common_types.h"
@ -23,10 +27,10 @@ struct PackedGdbHioRequest {
void SetHioRequest(const VAddr address);
bool HandleHioRequest(const u8* const command_buffer, const u32 command_length);
bool HandleHioReply(const u8* const command_buffer, const u32 command_length);
bool HasHioRequest();
std::string BuildHioReply();
std::string BuildHioRequestPacket();
} // namespace GDBStub