-
-
Notifications
You must be signed in to change notification settings - Fork 51
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a669c30
commit e5123db
Showing
1 changed file
with
20 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
""" | ||
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" | ||
@staticmethod | ||
def supports_gdb_arch(arch: str) -> Optional[bool]: | ||
if "arm" in arch and arch.endswith("-m"): | ||
return True | ||
return None |