6 Commits
Author SHA1 Message Date
pancake 2c19d6c9dc Ported the remaining classes to use the command builder and _exec:
- Search: string/wide/case-insensitive/Rabin-Karp/JSON searches now use _cmd_arg so patterns with spaces/special chars are safe.
- Flags: removed leftover manual _tmp_off = "" cleanups (now automatic).
- Debugger: added _tmp_addr() helper, removed manual _tmp_off cleanup.
- Esil: ESIL expressions use _cmd_arg; EsilCPU.registers() returns {} on failure; emulateInstr resolves symbol names to numeric
addresses because aesp doesn't accept symbols.
- Config: cleaned up old-style super() and % formatting; config set now uses key=value.
- File: minor __getattr__ cleanup.
- IOMap: setName uses _cmd_arg for arbitrary map names.
- R2Api / Function: af, afn, afn., p8, aoj, axtj now rely on automatic _tmp_off handling; removed duplicated open/files definitions.
2026-08-28 17:05:58 +02:00
pancake 226d4d4661 Switch command execution to r2pipe.cmd2 and add safe argument quoting
- R2Base._exec now uses r2pipe.cmd2 and raises R2CommandError on failure
- Empty JSON responses return None instead of crashing
- Added _cmd_arg helper to quote string/assembly arguments safely
- Ported Write.string/assembly and Print to the new execution path
- Skip debugger register tests when ptrace is unavailable
2026-08-28 16:18:13 +02:00
pancake 90976f9adf Fix broken r2papi APIs and modernize Phase 0 hygiene
- Flags.exists now scans the JSON flag list instead of the broken `??` helper
- Config boolean values are coerced correctly instead of checking the attribute name
- Debugger CPU no longer swallows all errors and handles empty register sets
- IOMap permissions now read/write the correct radare2 field
- Python 2 leftovers removed and string formatting modernized
- All public r2papi classes are now exported
2026-08-28 16:03:25 +02:00
Abhi 69c33ff619 python: Implement search (#35) 2025-10-14 06:29:40 +05:30
Abhi 3b46fda689 Enhance & Refactor with latest r2 2025-10-09 23:04:06 +02:00
pancake 6d0fbec267 Minor fixes to publish r2papi-python 2024-01-10 17:20:33 +01:00