-
-
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
3aaf853
commit 16f140a
Showing
2 changed files
with
32 additions
and
1 deletion.
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,23 @@ | ||
""" | ||
ARM through the Black Magic Probe support for GEF | ||
To use, source this file *after* gef | ||
Author: Grazfather | ||
""" | ||
|
||
from typing import Optional | ||
|
||
|
||
class ARMBlackMagicProbe(ARM): | ||
arch = "ARMBlackMagicProbe" | ||
aliases = ("ARMBlackMagicProbe",) | ||
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 |
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