radare2 icon indicating copy to clipboard operation
radare2 copied to clipboard

JSON output is inconsistent between `p` subcommands

Open ttufts opened this issue 8 months ago • 4 comments

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.

ttufts avatar Jun 06 '24 18:06 ttufts