mirror of
https://github.com/radareorg/radare2.git
synced 2024-12-13 16:18:33 +00:00
1f7f9dc036
- add 'timeout' directive - directives can now be passed in arguments - support more than 3 args for launching - show default config file in help * Added test suite for r_egg - Fix nested conditional and loops - Some situations can result in broken code - Code needs a huge cleanup * Varioues fixes for x86.nz plugin to make r_egg happy * Install python plugins into dist-packages only - site-packages is not the right place * Add R2_LIBDIR and R2_PREFIX constants * Honor LIBDIR in sdbpath for r_syscall * Fix rabin2 -h for -C
31 lines
314 B
Bash
Executable File
31 lines
314 B
Bash
Executable File
#!/bin/sh
|
|
EXIT=0
|
|
OUTPUT="one
|
|
one
|
|
two
|
|
one
|
|
one
|
|
two"
|
|
cat > t.r <<EOF
|
|
exit@syscall(1);
|
|
write@syscall(4);
|
|
|
|
main@global(128,128) {
|
|
.var0 = 2;
|
|
: polla:
|
|
.var4 = 2;
|
|
while (.var4) {
|
|
write (1, "one\n", 4);
|
|
.var4 -= 1;
|
|
}
|
|
write (1, "two\n", 4);
|
|
.var0 -= 1;
|
|
if (.var0) {
|
|
goto(polla);
|
|
}
|
|
exit (0);
|
|
}
|
|
EOF
|
|
. ./t.sh
|
|
|