- fix `ags` and `agl` commands
- add more tests for the `ag` commands
- move graph related code to cgraph.c
- remove APIs `rz_core_print_bb_custom` `rz_core_print_bb_gml`
- exports
- `rz_graph_drawable_to_json_str`
- `rz_graph_drawable_to_cmd`
- `rz_graph_drawable_to_gml`
- `rz_core_graph`
- `rz_core_graph_diff`
- `rz_core_graph_format_from_string`
- `rz_core_graph_type_from_string`
- `rz_core_graph_write`
- `create_agraph_from_graph_at`
- add unit/integration tests for the graph API
26 lines
641 B
Text
26 lines
641 B
Text
NAME=agf j resolv reloc symbols
|
|
FILE=bins/elf/ls
|
|
CMDS=<<EOF
|
|
aa 2> /dev/null
|
|
aac 2> /dev/null
|
|
sf loc.0000f190
|
|
agf j ~reloc.free
|
|
EOF
|
|
EXPECT=
|
|
RUN
|
|
|
|
NAME=agf J
|
|
FILE==
|
|
CMDS=<<EOF
|
|
e asm.arch=x86
|
|
e asm.bytes=true
|
|
e asm.bits=64
|
|
s 0x42
|
|
wx 00004883f80074060000000000000000c3
|
|
af
|
|
agf J
|
|
EOF
|
|
EXPECT=<<EOF
|
|
{"nodes":[{"id":0,"title":"0x42","body":"fcn.00000042 ();\nadd byte [rax], al\ncmp rax, 0\nje 0x50\n","offset":66,"out_nodes":[1,2]},{"id":1,"title":"0x50","body":"add byte [rax], al\nret\n","offset":80,"out_nodes":[]},{"id":2,"title":"0x4a","body":"add byte [rax], al\nadd byte [rax], al\nadd byte [rax], al\n","offset":74,"out_nodes":[1]}]}
|
|
EOF
|
|
RUN
|