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:
Scott Knight 2018-11-28 11:12:57 -05:00 committed by Rafael Kitover
parent f385fb2faf
commit 6ba3b7791d
1 changed files with 1 additions and 1 deletions

View File

@ -3612,7 +3612,7 @@ void remoteSendStatus()
s += 12;
CPUUpdateCPSR();
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 >> 16) & 255,
(v >> 24) & 255);