From ee1c5b24e2abc2942848c7706dca9d100977ed69 Mon Sep 17 00:00:00 2001 From: Md7 <108727157+dhammerg@users.noreply.github.com> Date: Sun, 14 Jun 2026 10:22:11 +0330 Subject: [PATCH 1/2] Refactor custom register list for architecture support --- angrcli/plugins/ContextView/context_view.py | 24 +++++---------------- 1 file changed, 5 insertions(+), 19 deletions(-) diff --git a/angrcli/plugins/ContextView/context_view.py b/angrcli/plugins/ContextView/context_view.py index 80f979c..fe4c048 100644 --- a/angrcli/plugins/ContextView/context_view.py +++ b/angrcli/plugins/ContextView/context_view.py @@ -600,25 +600,11 @@ def default_registers(self) -> List[RegisterName]: """ custom = { "X86": cast(List[RegisterName], ["eax", "ebx", "ecx", "edx", "esi", "edi", "ebp", "esp", "eip"]), - "AMD64": cast(List[RegisterName], [ - "rax", - "rbx", - "rcx", - "rdx", - "rsi", - "rdi", - "rbp", - "rsp", - "rip", - "r8", - "r9", - "r10", - "r11", - "r12", - "r13", - "r14", - "r15", - ]), + "AMD64": cast(List[RegisterName], ["rax","rbx","rcx","rdx","rsi","rdi","rbp","rsp","rip","r8","r9","r10","r11","r12","r13","r14","r15"]), + "MIPS32": cast(List[RegisterName], ["a0", "a1", "a2", "a3", "s0", "s1","s2", "s3", "s4", "s5", "s6", "s7","t0", "t1", "t2", "t3", "t4", "t5","t6", "t7", "t8", "t9", "v0", "v1","sp", "gp", "pc", "ra", "fp"]), + "ARMHF": cast(List[RegisterName], ["r0", "r1", "r2", "r3", "r4", "r5","r6", "r7", "r8", "r9", "r10", "r11","r12", "lr", "sp", "pc"]), + "ARMEL": cast(List[RegisterName], ["r0", "r1", "r2", "r3", "r4", "r5","r6", "r7", "r8", "r9", "r10", "r11","r12", "lr", "sp", "pc"]), + "AArch64": cast(List[RegisterName], ["x0", "x1", "x2", "x3", "x4", "x5","x6", "x7", "x8", "x9", "x10", "x11","x12", "x13", "x14", "x15", "x16", "x17", "x18", "x19", "x20", "x21", "x22", "x23", "x24", "x25", "x26", "x27", "x28", "x29","x30"]) } # type: Dict[str, List[RegisterName]] if self.state.arch.name in custom: return custom[self.state.arch.name] From 6016d914f144125045558307daa0c718d8f5bf57 Mon Sep 17 00:00:00 2001 From: Md7 Date: Sun, 2 Aug 2026 19:49:34 +0330 Subject: [PATCH 2/2] Fix deprecated claripy uninitialized check --- angrcli/plugins/ContextView/context_view.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/angrcli/plugins/ContextView/context_view.py b/angrcli/plugins/ContextView/context_view.py index fe4c048..0a880dd 100644 --- a/angrcli/plugins/ContextView/context_view.py +++ b/angrcli/plugins/ContextView/context_view.py @@ -174,6 +174,12 @@ def __BVtoREG(self, bv: BV) -> str: return replname return str(bv) + def is_uninitialized(self, bv): + return any( + isinstance(a, claripy.annotation.UninitializedAnnotation) + for a in bv.annotations + ) + def _color_code_ast(self, bv: claripy.ast.bv.BV) -> Tuple[ColoredString, bool]: """ Converts a bitvector into a string representation that is colored depending on it's type/value and returns @@ -188,7 +194,7 @@ def _color_code_ast(self, bv: claripy.ast.bv.BV) -> Tuple[ColoredString, bool]: :return Tuple[str, bool]: """ if bv.symbolic: - if bv.has_annotation_type(UninitializedAnnotation): + if self.is_uninitialized(bv): return Color.grayify(self.__BVtoREG(bv)), False return Color.greenify(self.__BVtoREG(bv)), False # its concrete