diff --git a/archs/arm-openocd.py b/archs/arm-openocd.py new file mode 100644 index 0000000..c525deb --- /dev/null +++ b/archs/arm-openocd.py @@ -0,0 +1,15 @@ +""" +ARM through OpenOCD support for GEF + +To use, source this file *after* gef + +Author: Grazfather +""" + +class ARMOpenOCD(ARM): + arch = "ARMOpenOCD" + aliases = ("ARMOpenOCD",) + all_registers = ("$r0", "$r1", "$r2", "$r3", "$r4", "$r5", "$r6", + "$r7", "$r8", "$r9", "$r10", "$r11", "$r12", "$sp", + "$lr", "$pc", "$xPSR",) + flag_register = "$xPSR"