radare2
radare2 copied to clipboard
JSON output is inconsistent between `p` subcommands
Environment
Thu Jun 6 14:02:07 EDT 2024 radare2 5.9.3 32198 @ darwin-arm-64 birth: git.5.9.2-57-g6ad44b9c74 2024-06-05__16:47:07 commit: 6ad44b9c74be729d084319696bd8aca403fb2104 options: gpl -O2 cs:5 cl:2 make Darwin arm64
Description
When parsing json output from pdj
and pduoj
the json structure isn't the same. pduoj
dumps the text of the opcodes but doesn't parse the instructions into a helpful structure like pdj
does.
Test
Load an ARM (32 in my case) binary, run pdj 10
, run pduoj pop
, the pdj output has 'opcode' keys for each instruction, pduoj output only has 'text' keys for each instruction.