From 0d4c93d1c28e7014873d248fd7eadceafa48dc07 Mon Sep 17 00:00:00 2001 From: Ian Chamberlain Date: Tue, 4 Apr 2023 12:20:41 -0400 Subject: [PATCH] Undo some changes exposing unused functions --- src/core/gdbstub/gdbstub.cpp | 14 ++++++++++++-- src/core/gdbstub/gdbstub.h | 16 +--------------- 2 files changed, 13 insertions(+), 17 deletions(-) diff --git a/src/core/gdbstub/gdbstub.cpp b/src/core/gdbstub/gdbstub.cpp index 281ba3d62e..c8012dda27 100644 --- a/src/core/gdbstub/gdbstub.cpp +++ b/src/core/gdbstub/gdbstub.cpp @@ -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; 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; for (int i = 0; i < 16; i += 2) { diff --git a/src/core/gdbstub/gdbstub.h b/src/core/gdbstub/gdbstub.h index e11d31324b..70aa0e2dbf 100644 --- a/src/core/gdbstub/gdbstub.h +++ b/src/core/gdbstub/gdbstub.h @@ -111,25 +111,11 @@ void SetCpuStepFlag(bool is_step); 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. * * @param src Pointer to array of output hex string characters. * @param len Length of src array. */ 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