aboutsummaryrefslogtreecommitdiffstats
path: root/idatui/worker.py
diff options
context:
space:
mode:
authorblasty <blasty@local>2026-07-26 00:04:38 +0200
committerblasty <blasty@local>2026-07-26 00:04:38 +0200
commitcf8b4645e2744fff455fc09167f91d011a3e620a (patch)
treef8480964ec9e531ed98916f3cb6a5d513833a2b6 /idatui/worker.py
parentloading: ask how to load an unrecognised file, like IDA does (diff)
downloadida-tui-cf8b4645e2744fff455fc09167f91d011a3e620a.tar.gz
ida-tui-cf8b4645e2744fff455fc09167f91d011a3e620a.tar.xz
ida-tui-cf8b4645e2744fff455fc09167f91d011a3e620a.zip
formats: verify every offered processor name against a real IDA
The curated list was written from the procs/ directory listing. Two of the twenty names were wrong, and wrong here is not a soft failure: IDA REFUSES to open the database (rc=4) with nothing useful said. The load dialog would have handed people a dead end from inside the UI that exists to rescue them — the same silent-failure class the dialog was built to kill. h8 -> h8300 (h8.so is the module FILENAME, not a processor name) sparc -> sparcb / sparcl (and SPARC has endianness variants, like MIPS/PPC) Also probed the aliases people reach for first: arm64, aarch64, mips, m68k are all invalid. 'arm' covers AArch64 (verified: an AArch64 blob analyses to 35 functions under -parm), so those names now live in the human labels, where the filter still finds them — typing "arm64" finds ARM, "m68k" finds 68k, "mips" finds both endiannesses. tools/verify_procs.py does the check: open a scratch blob with -p<name>, read back inf_get_procname(), compare. Fresh temp dir per name, because once a database exists IDA ignores the load switches and every name after the first would "pass". 21/21 verified. tests: +11 formats, including the verified-set guard (adding a processor without re-running the script fails on purpose) and checks that the rejected aliases are NOT offered but ARE still findable by typing them. 32/0 formats, 199/0 scenarios.
Diffstat (limited to 'idatui/worker.py')
0 files changed, 0 insertions, 0 deletions