feat(native): add inspection primitives, dispatch traces and approved UI observation (#500)

* fix(hopper): normalize string-backed addresses and update verification

* feat(native): add inspection primitives, dispatch traces and approved UI observation

* test: prioritize real artifact E2E and captured golden regressions

* fix(process): queue observed output before reactive rendering actions

* test: prune redundant cases and strengthen boundary assertions

* fix(cli): route native value tracing through shared workflows

* test: replace synthetic success with real workflows and captured data

* fix(catalog): separate portable metadata from native host availability
This commit is contained in:
morluto
2026-10-04 16:02:36 +08:00
committed by GitHub
parent 0356f7677f
commit 4fbc501121
205 changed files with 8136 additions and 1816 deletions
+10
View File
@@ -2,6 +2,16 @@
volatile int rea_ghidra_inventory_global = 7;
enum ReaFixtureState { REA_FIXTURE_IDLE = 0, REA_FIXTURE_READY = 3 };
union ReaFixturePayload { unsigned int word; unsigned char bytes[4]; };
struct ReaFixtureLayout {
enum ReaFixtureState state;
union ReaFixturePayload payload;
struct ReaFixtureLayout *next;
};
volatile struct ReaFixtureLayout rea_ghidra_inventory_layout = {
REA_FIXTURE_READY, {.word = 5}, 0};
__attribute__((noinline, used)) int rea_ghidra_inventory_leaf(int value) {
puts("REA_GHIDRA_LEAF_VALUE");
return value + rea_ghidra_inventory_global;
@@ -0,0 +1,58 @@
#if defined(__APPLE__)
.section __TEXT,__text,regular,pure_instructions
.globl _rea_relative_switch
_rea_relative_switch:
#else
.text
.globl rea_relative_switch
.type rea_relative_switch,%function
rea_relative_switch:
#endif
cmp w0, #3
b.hi Ldefault
mov w8, w0
#if defined(__APPLE__)
adrp x9, Ltable@PAGE
add x9, x9, Ltable@PAGEOFF
#else
adrp x9, Ltable
add x9, x9, :lo12:Ltable
#endif
adr x10, Lcase0
#if REA_ENTRY_BYTES == 2
ldrh w11, [x9, x8, lsl #1]
#else
ldrb w11, [x9, x8]
#endif
add x10, x10, x11, lsl #2
br x10
Lcase0:
mov w0, #100
ret
#if REA_ENTRY_BYTES == 2
.space 1100
#endif
Lcase1:
mov w0, #101
ret
Lcase2:
mov w0, #102
ret
Lcase3:
mov w0, #103
ret
Ldefault:
mov w0, #-1
ret
#if defined(__APPLE__)
.section __TEXT,__const
#else
.section .rodata
#endif
.p2align 1
Ltable:
#if REA_ENTRY_BYTES == 2
.short (Lcase0-Lcase0)/4, (Lcase1-Lcase0)/4, (Lcase2-Lcase0)/4, (Lcase3-Lcase0)/4
#else
.byte (Lcase0-Lcase0)/4, (Lcase1-Lcase0)/4, (Lcase2-Lcase0)/4, (Lcase3-Lcase0)/4
#endif