mirror of
https://github.com/citra-emu/citra.git
synced 2024-11-15 12:50:11 +00:00
gdbstub: Get rid of a few signed/unsigned comparisons
Ensures both operands in comparisons are the same signedness.
This commit is contained in:
parent
b4524eb70b
commit
b4cdbf3ee8
@ -514,7 +514,7 @@ static bool IsDataAvailable() {
|
|||||||
fd_set fd_socket;
|
fd_set fd_socket;
|
||||||
|
|
||||||
FD_ZERO(&fd_socket);
|
FD_ZERO(&fd_socket);
|
||||||
FD_SET(gdbserver_socket, &fd_socket);
|
FD_SET(static_cast<u32>(gdbserver_socket), &fd_socket);
|
||||||
|
|
||||||
struct timeval t;
|
struct timeval t;
|
||||||
t.tv_sec = 0;
|
t.tv_sec = 0;
|
||||||
@ -564,7 +564,7 @@ static void ReadRegisters() {
|
|||||||
|
|
||||||
u8* bufptr = buffer;
|
u8* bufptr = buffer;
|
||||||
|
|
||||||
for (int reg = 0; reg <= R15_REGISTER; reg++) {
|
for (u32 reg = 0; reg <= R15_REGISTER; reg++) {
|
||||||
IntToGdbHex(bufptr + reg * CHAR_BIT, Core::CPU().GetReg(reg));
|
IntToGdbHex(bufptr + reg * CHAR_BIT, Core::CPU().GetReg(reg));
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -574,7 +574,7 @@ static void ReadRegisters() {
|
|||||||
|
|
||||||
bufptr += CHAR_BIT;
|
bufptr += CHAR_BIT;
|
||||||
|
|
||||||
for (int reg = 0; reg <= 31; reg++) {
|
for (u32 reg = 0; reg <= 31; reg++) {
|
||||||
IntToGdbHex(bufptr + reg * CHAR_BIT, Core::CPU().GetVFPReg(reg));
|
IntToGdbHex(bufptr + reg * CHAR_BIT, Core::CPU().GetVFPReg(reg));
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -618,7 +618,7 @@ static void WriteRegisters() {
|
|||||||
if (command_buffer[0] != 'G')
|
if (command_buffer[0] != 'G')
|
||||||
return SendReply("E01");
|
return SendReply("E01");
|
||||||
|
|
||||||
for (int i = 0, reg = 0; reg <= FPSCR_REGISTER; i++, reg++) {
|
for (u32 i = 0, reg = 0; reg <= FPSCR_REGISTER; i++, reg++) {
|
||||||
if (reg <= R15_REGISTER) {
|
if (reg <= R15_REGISTER) {
|
||||||
Core::CPU().SetReg(reg, GdbHexToInt(buffer_ptr + i * CHAR_BIT));
|
Core::CPU().SetReg(reg, GdbHexToInt(buffer_ptr + i * CHAR_BIT));
|
||||||
} else if (reg == CPSR_REGISTER) {
|
} else if (reg == CPSR_REGISTER) {
|
||||||
|
Loading…
Reference in New Issue
Block a user