* Try to detect shift of first case value * Detect when block where switch table is attached is split by analysis * Fix attaching switch table to wrong block * Add/fix tests
66 lines
821 B
Text
66 lines
821 B
Text
NAME=abt
|
|
FILE=bins/mach0/mac-ls2
|
|
CMDS=<<EOF
|
|
aaa
|
|
abt 0x10000168b @ 0x1000011e8
|
|
EOF
|
|
EXPECT=<<EOF
|
|
0x1000011e8
|
|
0x100001216
|
|
0x100001290
|
|
0x1000012b6
|
|
0x1000012c6
|
|
0x1000012e7
|
|
0x100001682
|
|
0x10000168b
|
|
EOF
|
|
RUN
|
|
|
|
NAME=abt2
|
|
FILE=bins/mach0/mac-ls2
|
|
CMDS=<<EOF
|
|
aaa
|
|
abt 0x1000015ac @ 0x1000011e8
|
|
EOF
|
|
EXPECT=<<EOF
|
|
0x1000011e8
|
|
0x100001216
|
|
0x100001290
|
|
0x1000012b6
|
|
0x1000012c6
|
|
0x1000012e7
|
|
0x100001301
|
|
0x1000015ac
|
|
EOF
|
|
RUN
|
|
|
|
NAME=abt3
|
|
FILE=bins/mach0/mac-ls2
|
|
CMDS=<<EOF
|
|
aaa
|
|
abt 0x1000016cd @ 0x1000011e8
|
|
EOF
|
|
EXPECT=<<EOF
|
|
0x1000011e8
|
|
0x100001216
|
|
0x100001290
|
|
0x1000012b6
|
|
0x1000012c6
|
|
0x1000012e7
|
|
0x100001682
|
|
0x10000168b
|
|
0x1000016aa
|
|
0x1000016cd
|
|
EOF
|
|
RUN
|
|
|
|
NAME=abtj
|
|
FILE=bins/mach0/mac-ls2
|
|
CMDS=<<EOF
|
|
aaa
|
|
abtj 0x10000168b @ 0x1000011e8
|
|
EOF
|
|
EXPECT=<<EOF
|
|
[4294971880,4294971926,4294972048,4294972086,4294972102,4294972135,4294973058,4294973067]
|
|
EOF
|
|
RUN
|