Debugger: Fix GDB breakpoints

This commit is contained in:
Jeffrey Pfau 2016-08-07 10:45:50 -07:00
parent 7f78f06761
commit a967f9aac4
2 changed files with 6 additions and 2 deletions

View File

@ -16,6 +16,7 @@ Bugfixes:
- PSP2: Fix accelerometer range
- PSP2: Actually load screen mode setting
- Qt: Fix bug in software renderer scaling
- Debugger: Fix GDB breakpoints
Misc:
- 3DS: Use blip_add_delta_fast for a small speed improvement
- OpenGL: Log shader compilation failure

View File

@ -295,7 +295,7 @@ static void _writeGPRs(struct GDBStub* stub, const char* message) {
const char* readAddress = message;
int r;
for (r = 0; r < 16; ++r) {
for (r = 0; r < ARM_PC; ++r) {
cpu->gprs[r] = _hex2int(readAddress, 8);
readAddress += 8;
}
@ -309,10 +309,13 @@ static void _readGPRs(struct GDBStub* stub, const char* message) {
UNUSED(message);
int r;
int i = 0;
for (r = 0; r < 16; ++r) {
for (r = 0; r < ARM_PC; ++r) {
_int2hex32(cpu->gprs[r], &stub->outgoing[i]);
i += 8;
}
_int2hex32(cpu->gprs[ARM_PC] - (cpu->cpsr.t ? WORD_SIZE_THUMB : WORD_SIZE_ARM), &stub->outgoing[i]);
i += 8;
stub->outgoing[i] = 0;
_sendMessage(stub);
}