NAME=cleanup landing pad is seeded at the depth of its try range
FILE=malloc://1024
ARGS=-a x86 -b 64
CMDS=<<EOF
wx 5553e8f90000005b5dc3 @ 0
wx 504889c7e8d7010000c3 @ 0x20
wx c3 @ 0x100
wx c3 @ 0x200
f sym.imp._Unwind_Resume @ 0x200
iw+ 0 2 7 0x20 kind=cleanup
af @ 0
afb
afi~stackframe
EOF
EXPECT=<<EOF
0x00000000 0x0000000a 00:0000 10
0x00000020 0x00000029 00:0000 9
stackframe: 24
EOF
RUN

NAME=finally funclets and handlers in existing blocks are not seeded
FILE=malloc://1024
ARGS=-a x86 -b 64
CMDS=<<EOF
wx 5553e8f90000005b5dc3 @ 0
wx 504889c7e8d7010000c3 @ 0x20
wx 4889c7e8b4010000c3 @ 0x40
wx c3 @ 0x60
wx c3 @ 0x100
wx c3 @ 0x200
f sym.imp._Unwind_Resume @ 0x200
af @ 0x40
iw+ 0 2 7 0x20 kind=finally
iw+ 0 2 7 0x44 kind=cleanup
iw+ 0 0x300 0x310 0x60 kind=catch
af @ 0
afb
afi. @ 0x44
afb @ 0x40~?
EOF
EXPECT=<<EOF
0x00000000 0x0000000a 00:0000 10
0x00000060 0x00000061 00:0000 1
fcn.00000040
1
EOF
RUN
