Try with lowercase xpsr register first on ARM Cortex M/gdb 8+

Attempt to use xPSR as a fallback only if xpsr fails.
pull/1012/head
Yuri D'Elia 4 years ago committed by Disconnect3d
parent c11ac3710b
commit 3e31bbea86

@ -282,9 +282,9 @@ class module(ModuleType):
value = gdb77_get_register(attr)
value = value.cast(pwndbg.typeinfo.uint32)
else:
if attr.lower() == 'xpsr':
attr = 'xPSR'
value = get_register(attr)
if value is None and attr.lower() == 'xpsr':
value = get_register('xPSR')
size = pwndbg.typeinfo.unsigned.get(value.type.sizeof, pwndbg.typeinfo.ulong)
value = value.cast(size)
if attr.lower() == 'pc' and pwndbg.arch.current == 'i8086':

Loading…
Cancel
Save