Set correct register number in gdb stop reply
https://github.com/bminor/binutils-gdb/blob/master/gdb/features/arm/arm-core.xml According to the current arm register definition file in gdb the cpsr register is actually register number 25 and not 16.
This commit is contained in:
parent
f385fb2faf
commit
6ba3b7791d
|
@ -3612,7 +3612,7 @@ void remoteSendStatus()
|
||||||
s += 12;
|
s += 12;
|
||||||
CPUUpdateCPSR();
|
CPUUpdateCPSR();
|
||||||
v = reg[16].I;
|
v = reg[16].I;
|
||||||
sprintf(s, "10:%02x%02x%02x%02x;", (v & 255),
|
sprintf(s, "19:%02x%02x%02x%02x;", (v & 255),
|
||||||
(v >> 8) & 255,
|
(v >> 8) & 255,
|
||||||
(v >> 16) & 255,
|
(v >> 16) & 255,
|
||||||
(v >> 24) & 255);
|
(v >> 24) & 255);
|
||||||
|
|
Loading…
Reference in New Issue