Undo some changes exposing unused functions

This commit is contained in:
Ian Chamberlain 2023-04-04 12:20:41 -04:00
parent 351730d585
commit 0d4c93d1c2
No known key found for this signature in database
GPG key ID: AE5484D09405AA60
2 changed files with 13 additions and 17 deletions

View file

@ -313,7 +313,12 @@ static void IntToGdbHex(u8* dest, u32 v) {
} }
} }
u32 GdbHexToInt(const u8* src) { /**
* Convert a gdb-formatted hex string into a u32.
*
* @param src Pointer to hex string.
*/
static u32 GdbHexToInt(const u8* src) {
u32 output = 0; u32 output = 0;
for (int i = 0; i < 8; i += 2) { for (int i = 0; i < 8; i += 2) {
@ -337,7 +342,12 @@ static void LongToGdbHex(u8* dest, u64 v) {
} }
} }
u64 GdbHexToLong(const u8* src) { /**
* Convert a gdb-formatted hex string into a u64.
*
* @param src Pointer to hex string.
*/
static u64 GdbHexToLong(const u8* src) {
u64 output = 0; u64 output = 0;
for (int i = 0; i < 16; i += 2) { for (int i = 0; i < 16; i += 2) {

View file

@ -111,25 +111,11 @@ void SetCpuStepFlag(bool is_step);
void SendTrap(Kernel::Thread* thread, int trap); void SendTrap(Kernel::Thread* thread, int trap);
/** /**
u32 HexToInt(const u8* src, std::size_t len) {
* Converts input hex string characters into an array of equivalent of u8 bytes. * Converts input hex string characters into an array of equivalent of u8 bytes.
* *
* @param src Pointer to array of output hex string characters. * @param src Pointer to array of output hex string characters.
* @param len Length of src array. * @param len Length of src array.
*/ */
u32 HexToInt(const u8* src, std::size_t len); u32 HexToInt(const u8* src, std::size_t len);
/**
* Convert a gdb-formatted hex string into a u32.
*
* @param src Pointer to hex string.
*/
u32 GdbHexToInt(const u8* src);
/**
* Convert a gdb-formatted hex string into a u64.
*
* @param src Pointer to hex string.
*/
u64 GdbHexToLong(const u8* src);
} // namespace GDBStub } // namespace GDBStub