diff options
Diffstat (limited to 'src/core/gdbstub/gdbstub.cpp')
| -rw-r--r-- | src/core/gdbstub/gdbstub.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/core/gdbstub/gdbstub.cpp b/src/core/gdbstub/gdbstub.cpp index 6062de13c..5ca573652 100644 --- a/src/core/gdbstub/gdbstub.cpp +++ b/src/core/gdbstub/gdbstub.cpp | |||
| @@ -205,7 +205,7 @@ static Kernel::Thread* FindThreadById(int id) { | |||
| 205 | for (u32 core = 0; core < Core::NUM_CPU_CORES; core++) { | 205 | for (u32 core = 0; core < Core::NUM_CPU_CORES; core++) { |
| 206 | const auto& threads = Core::System::GetInstance().Scheduler(core)->GetThreadList(); | 206 | const auto& threads = Core::System::GetInstance().Scheduler(core)->GetThreadList(); |
| 207 | for (auto& thread : threads) { | 207 | for (auto& thread : threads) { |
| 208 | if (thread->GetThreadId() == id) { | 208 | if (thread->GetThreadId() == static_cast<u32>(id)) { |
| 209 | current_core = core; | 209 | current_core = core; |
| 210 | return thread.get(); | 210 | return thread.get(); |
| 211 | } | 211 | } |
| @@ -214,7 +214,7 @@ static Kernel::Thread* FindThreadById(int id) { | |||
| 214 | return nullptr; | 214 | return nullptr; |
| 215 | } | 215 | } |
| 216 | 216 | ||
| 217 | static u64 RegRead(int id, Kernel::Thread* thread = nullptr) { | 217 | static u64 RegRead(std::size_t id, Kernel::Thread* thread = nullptr) { |
| 218 | if (!thread) { | 218 | if (!thread) { |
| 219 | return 0; | 219 | return 0; |
| 220 | } | 220 | } |
| @@ -234,7 +234,7 @@ static u64 RegRead(int id, Kernel::Thread* thread = nullptr) { | |||
| 234 | } | 234 | } |
| 235 | } | 235 | } |
| 236 | 236 | ||
| 237 | static void RegWrite(int id, u64 val, Kernel::Thread* thread = nullptr) { | 237 | static void RegWrite(std::size_t id, u64 val, Kernel::Thread* thread = nullptr) { |
| 238 | if (!thread) { | 238 | if (!thread) { |
| 239 | return; | 239 | return; |
| 240 | } | 240 | } |
| @@ -744,7 +744,7 @@ static bool IsDataAvailable() { | |||
| 744 | fd_set fd_socket; | 744 | fd_set fd_socket; |
| 745 | 745 | ||
| 746 | FD_ZERO(&fd_socket); | 746 | FD_ZERO(&fd_socket); |
| 747 | FD_SET(gdbserver_socket, &fd_socket); | 747 | FD_SET(static_cast<u32>(gdbserver_socket), &fd_socket); |
| 748 | 748 | ||
| 749 | struct timeval t; | 749 | struct timeval t; |
| 750 | t.tv_sec = 0; | 750 | t.tv_sec = 0; |
| @@ -793,7 +793,7 @@ static void ReadRegisters() { | |||
| 793 | 793 | ||
| 794 | u8* bufptr = buffer; | 794 | u8* bufptr = buffer; |
| 795 | 795 | ||
| 796 | for (int reg = 0; reg <= SP_REGISTER; reg++) { | 796 | for (u32 reg = 0; reg <= SP_REGISTER; reg++) { |
| 797 | LongToGdbHex(bufptr + reg * 16, RegRead(reg, current_thread)); | 797 | LongToGdbHex(bufptr + reg * 16, RegRead(reg, current_thread)); |
| 798 | } | 798 | } |
| 799 | 799 | ||
| @@ -807,7 +807,7 @@ static void ReadRegisters() { | |||
| 807 | 807 | ||
| 808 | bufptr += 8; | 808 | bufptr += 8; |
| 809 | 809 | ||
| 810 | for (int reg = UC_ARM64_REG_Q0; reg <= UC_ARM64_REG_Q0 + 31; reg++) { | 810 | for (u32 reg = UC_ARM64_REG_Q0; reg <= UC_ARM64_REG_Q0 + 31; reg++) { |
| 811 | LongToGdbHex(bufptr + reg * 16, RegRead(reg, current_thread)); | 811 | LongToGdbHex(bufptr + reg * 16, RegRead(reg, current_thread)); |
| 812 | } | 812 | } |
| 813 | 813 | ||
| @@ -858,7 +858,7 @@ static void WriteRegisters() { | |||
| 858 | if (command_buffer[0] != 'G') | 858 | if (command_buffer[0] != 'G') |
| 859 | return SendReply("E01"); | 859 | return SendReply("E01"); |
| 860 | 860 | ||
| 861 | for (int i = 0, reg = 0; reg <= FPSCR_REGISTER; i++, reg++) { | 861 | for (u32 i = 0, reg = 0; reg <= FPSCR_REGISTER; i++, reg++) { |
| 862 | if (reg <= SP_REGISTER) { | 862 | if (reg <= SP_REGISTER) { |
| 863 | RegWrite(reg, GdbHexToLong(buffer_ptr + i * 16), current_thread); | 863 | RegWrite(reg, GdbHexToLong(buffer_ptr + i * 16), current_thread); |
| 864 | } else if (reg == PC_REGISTER) { | 864 | } else if (reg == PC_REGISTER) { |