From f0189b2201e66867c68a9c95d255693c74dc2787 Mon Sep 17 00:00:00 2001 From: Florian Kerle Date: Sat, 21 May 2022 17:43:17 +0200 Subject: [PATCH] fix ARM-M class definition without the proper parameter for Elf.Abi, `reset_architecture` produces a warning. This warnin is not only inconvenient, but does stop the debugger from attaching automatically. according to i.e. https://community.arm.com/support-forums/f/architectures-and-processors-forum/51867/how-can-i-know-if-an-elf-file-is-for-cortex-a-or-cortex-m there is no different ABI code form ARM platforms. CPU Type would be needed to make a proper distinction. --- archs/arm-cortex-m.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/archs/arm-cortex-m.py b/archs/arm-cortex-m.py index d731e7e..247a7ec 100644 --- a/archs/arm-cortex-m.py +++ b/archs/arm-cortex-m.py @@ -11,7 +11,7 @@ @register_architecture class ARM_M(ARM): arch = "ARM-M" - aliases = ("ARM-M", ) + aliases = ("ARM-M", Elf.Abi.ARM) all_registers = ARM.all_registers[:-1] + ["$xpsr", ] flag_register = "$xpsr"