mirror of
https://github.com/radareorg/radare2.git
synced 2025-01-10 15:33:04 +00:00
59 lines
729 B
Plaintext
59 lines
729 B
Plaintext
NAME=af localflag
|
|
FILE=bins/mach0/mac-ls2
|
|
CMDS=<<EOF
|
|
aaa
|
|
afi~?
|
|
afi.
|
|
afb.
|
|
EOF
|
|
EXPECT=<<EOF
|
|
33
|
|
entry0
|
|
0x1000011e8 0x100001211 00:0000 41 j 0x100001216 f 0x100001211
|
|
EOF
|
|
RUN
|
|
|
|
NAME=ab opaddr
|
|
FILE=bins/mach0/mac-ls2
|
|
CMDS=<<EOF
|
|
e cfg.json.num=hex
|
|
af
|
|
ab
|
|
s+1
|
|
ab~opaddr
|
|
s+1
|
|
ab~opaddr
|
|
abj~{}
|
|
s+1
|
|
ab~opaddr
|
|
s+1
|
|
ab~opaddr
|
|
EOF
|
|
EXPECT=<<EOF
|
|
jump: 0x100001216
|
|
fail: 0x100001211
|
|
opaddr: 0x1000011e8
|
|
addr: 0x1000011e8
|
|
size: 41
|
|
inputs: 0
|
|
outputs: 2
|
|
ninstr: 14
|
|
traced: false
|
|
opaddr: 0x1000011e9
|
|
opaddr: 0x1000011e9
|
|
{
|
|
"jump": "0x100001216",
|
|
"fail": "0x100001211",
|
|
"opaddr": "0x1000011e9",
|
|
"addr": "0x1000011e8",
|
|
"size": 41,
|
|
"inputs": 0,
|
|
"outputs": 2,
|
|
"ninstr": 14,
|
|
"traced": false
|
|
}
|
|
opaddr: 0x1000011e9
|
|
opaddr: 0x1000011ec
|
|
EOF
|
|
RUN
|