mirror of https://github.com/mgba-emu/mgba.git
Debugger: Fix GDB breakpoints
This commit is contained in:
parent
7f78f06761
commit
a967f9aac4
1
CHANGES
1
CHANGES
|
@ -16,6 +16,7 @@ Bugfixes:
|
||||||
- PSP2: Fix accelerometer range
|
- PSP2: Fix accelerometer range
|
||||||
- PSP2: Actually load screen mode setting
|
- PSP2: Actually load screen mode setting
|
||||||
- Qt: Fix bug in software renderer scaling
|
- Qt: Fix bug in software renderer scaling
|
||||||
|
- Debugger: Fix GDB breakpoints
|
||||||
Misc:
|
Misc:
|
||||||
- 3DS: Use blip_add_delta_fast for a small speed improvement
|
- 3DS: Use blip_add_delta_fast for a small speed improvement
|
||||||
- OpenGL: Log shader compilation failure
|
- OpenGL: Log shader compilation failure
|
||||||
|
|
|
@ -295,7 +295,7 @@ static void _writeGPRs(struct GDBStub* stub, const char* message) {
|
||||||
const char* readAddress = message;
|
const char* readAddress = message;
|
||||||
|
|
||||||
int r;
|
int r;
|
||||||
for (r = 0; r < 16; ++r) {
|
for (r = 0; r < ARM_PC; ++r) {
|
||||||
cpu->gprs[r] = _hex2int(readAddress, 8);
|
cpu->gprs[r] = _hex2int(readAddress, 8);
|
||||||
readAddress += 8;
|
readAddress += 8;
|
||||||
}
|
}
|
||||||
|
@ -309,10 +309,13 @@ static void _readGPRs(struct GDBStub* stub, const char* message) {
|
||||||
UNUSED(message);
|
UNUSED(message);
|
||||||
int r;
|
int r;
|
||||||
int i = 0;
|
int i = 0;
|
||||||
for (r = 0; r < 16; ++r) {
|
for (r = 0; r < ARM_PC; ++r) {
|
||||||
_int2hex32(cpu->gprs[r], &stub->outgoing[i]);
|
_int2hex32(cpu->gprs[r], &stub->outgoing[i]);
|
||||||
i += 8;
|
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;
|
stub->outgoing[i] = 0;
|
||||||
_sendMessage(stub);
|
_sendMessage(stub);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue