Move test/new/* into test/ ##tests (#16511)

This commit is contained in:
pancake 2020-04-13 19:49:23 +02:00 committed by GitHub
parent 22ff4de83f
commit 346eb5bd38
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
706 changed files with 2281 additions and 2292 deletions

View File

@ -7,7 +7,7 @@
#define WORKERS_DEFAULT 8
#define RADARE2_CMD_DEFAULT "radare2"
#define RASM2_CMD_DEFAULT "rasm2"
#define JSON_TEST_FILE_DEFAULT "../bins/elf/crackme0x00b"
#define JSON_TEST_FILE_DEFAULT "bins/elf/crackme0x00b"
#define TIMEOUT_DEFAULT 960
#define STRV(x) #x
@ -81,7 +81,7 @@ static bool r2r_chdir(const char *argv0) {
char *p = strstr (src_path, R_SYS_DIR "binr"R_SYS_DIR"r2r"R_SYS_DIR"r2r");
if (p) {
*p = 0;
strcat (src_path, R_SYS_DIR"test"R_SYS_DIR"new");
strcat (src_path, R_SYS_DIR"test"R_SYS_DIR);
if (r_file_is_directory (src_path)) {
(void)chdir (src_path);
eprintf ("Running from %s\n", src_path);

View File

@ -6,7 +6,7 @@ bins:
fuzz/targets:
git clone --depth 1 https://github.com/radareorg/radare2-fuzztargets fuzz/targets
RUNTEST=cd new && r2r -L
RUNTEST=r2r -L
r2r-tests: bins
${RUNTEST}

View File

@ -96,7 +96,7 @@ The JSON tests `db/new/json` are executed on 3 standard files (1 ELF, 1 MachO, 1
Example commands tests for the other `new/` folders:
NAME=test_db
FILE=/../bins/elf/ls
FILE=bins/elf/ls
CMDS=<<EXPECT
pd 4
EXPECT=<<RUN

View File

@ -166,7 +166,7 @@ EOF
RUN
NAME=arm-or-thumb visual bug
FILE=../bins/mach0/arm-or-thumb
FILE=bins/mach0/arm-or-thumb
CMDS=<<EOF
e scr.interactive=1
e scr.null=1
@ -180,7 +180,7 @@ EOF
RUN
NAME=arm-or-thumb visual bug
FILE=../bins/mach0/arm-or-thumb
FILE=bins/mach0/arm-or-thumb
CMDS=<<EOF
af
afi~^size[1]
@ -327,7 +327,7 @@ EOF
RUN
NAME=ELF ARM: thumb/arm switch
FILE=../bins/elf/analysis/libstagefright_soft_g711dec.so
FILE=bins/elf/analysis/libstagefright_soft_g711dec.so
CMDS=<<EOF
af
afi~size
@ -494,7 +494,7 @@ EOF
RUN
NAME=arm relsub
FILE=../bins/elf/arm1.bin
FILE=bins/elf/arm1.bin
CMDS=<<EOF
e asm.arch=arm
e asm.bits=32
@ -515,7 +515,7 @@ EOF
RUN
NAME=arm relsub
FILE=../bins/elf/analysis/arm-ls
FILE=bins/elf/analysis/arm-ls
BROKEN=1
CMDS=<<EOF
e asm.arch=arm
@ -564,7 +564,7 @@ EOF
RUN
NAME=ELF ARM: function names
FILE=../bins/elf/analysis/arm_32_flags0
FILE=bins/elf/analysis/arm_32_flags0
CMDS=<<EOF
s sym.call_weak_fn
af
@ -576,7 +576,7 @@ EOF
RUN
NAME=ELF ARM: function names 2
FILE=../bins/elf/analysis/arm_32_flags0
FILE=bins/elf/analysis/arm_32_flags0
CMDS=<<EOF
aa
afl~abort
@ -587,7 +587,7 @@ EOF
RUN
NAME=ELF ARM: function names 3
FILE=../bins/elf/analysis/arm_32_flags0
FILE=bins/elf/analysis/arm_32_flags0
CMDS=<<EOF
aa
afl~weak
@ -598,7 +598,7 @@ EOF
RUN
NAME=ELF ARM: function names 4
FILE=../bins/elf/analysis/arm_32_flags0
FILE=bins/elf/analysis/arm_32_flags0
CMDS=<<EOF
af @@ sym*
afl~weak
@ -609,7 +609,7 @@ EOF
RUN
NAME=ELF ARM: aa
FILE=../bins/elf/analysis/arm_32_flags0
FILE=bins/elf/analysis/arm_32_flags0
CMDS=<<EOF
aa
f~sym?
@ -622,7 +622,7 @@ EOF
RUN
NAME=ELF ARM: aa2
FILE=../bins/elf/analysis/arm_32_flags0
FILE=bins/elf/analysis/arm_32_flags0
CMDS=<<EOF
aa
afl
@ -647,7 +647,7 @@ EOF
RUN
NAME=ELF ARM: function arg
FILE=../bins/elf/analysis/armcall
FILE=bins/elf/analysis/armcall
CMDS=<<EOF
e asm.calls=false
afr@main
@ -674,7 +674,7 @@ EOF
RUN
NAME=ELF ARM: function args
FILE=../bins/elf/analysis/armcall
FILE=bins/elf/analysis/armcall
CMDS=<<EOF
e asm.calls=false
af@main
@ -703,7 +703,7 @@ EOF
RUN
NAME=ELF ARM: aav
FILE=../bins/elf/analysis/armcall
FILE=bins/elf/analysis/armcall
CMDS=<<EOF
e asm.calls=false
aav
@ -719,7 +719,7 @@ EOF
RUN
NAME=ELF ARM: af and aav
FILE=../bins/elf/arm1.bin
FILE=bins/elf/arm1.bin
CMDS=<<EOF
e asm.arch=arm
e asm.bits=32
@ -744,7 +744,7 @@ EOF
RUN
NAME=ELF ARM: aav string
FILE=../bins/elf/arm1.bin
FILE=bins/elf/arm1.bin
BROKEN=1
CMDS=<<EOF
e asm.arch=arm
@ -763,7 +763,7 @@ EOF
RUN
NAME=ELF ARM: vars
FILE=../bins/elf/analysis/arm-ls
FILE=bins/elf/analysis/arm-ls
CMDS=<<EOF
e asm.calls=false
s main
@ -811,7 +811,7 @@ RUN
NAME=arm thumb basic block detection with ITTE
BROKEN=1
FILE=../../bins/elf/analysis/bug-it-bb
FILE=bins/elf/analysis/bug-it-bb
CMDS=aaa ; s 0x00010074 ; afb
EXPECT=<<EOF
0x00010074 0x0001007a 00:0000 6 j 0x0001007a f 0x0001007e 0x0001007a 0x0001007e 00:0000 4 j 0x00010080 0x0001007e 0x00010080 00:0000 2 j 0x00010080 0x00010080 0x00010082 00:0000 2
@ -819,7 +819,7 @@ EOF
RUN
NAME=arm jump table
FILE=../bins/elf/analysis/callback.elf
FILE=bins/elf/analysis/callback.elf
CMDS=<<EOF
af @ sym.input_handler2
CC. @ 0x000105b8~?\(7
@ -830,7 +830,7 @@ EOF
RUN
NAME=arm jump table
FILE=../bins/elf/analysis/mobile_bank.45115ff5f655d94fc26cb5244928b3fc
FILE=bins/elf/analysis/mobile_bank.45115ff5f655d94fc26cb5244928b3fc
CMDS=<<EOF
af @ 0x11284
CC. @ 0x000112b0~?\(8
@ -841,7 +841,7 @@ EOF
RUN
NAME=arm main analyzed with aaa
FILE=../bins/elf/analysis/ch23.bin
FILE=bins/elf/analysis/ch23.bin
CMDS=<<EOF
aaa
afl~?0x00008470
@ -852,7 +852,7 @@ EOF
RUN
NAME=arm main in disassembly
FILE=../bins/elf/analysis/ch23.bin
FILE=bins/elf/analysis/ch23.bin
BROKEN=1
CMDS=<<EOF
aaa
@ -892,7 +892,7 @@ EOF
RUN
NAME=ao 16 after ao 32
FILE=../bins/arm/elf/hello_world
FILE=bins/arm/elf/hello_world
CMDS=<<EOF
e asm.bits=16
ao@0x568
@ -938,7 +938,7 @@ EOF
RUN
NAME=arm aae with bit switch
FILE=../bins/arm/elf/hello_world
FILE=bins/arm/elf/hello_world
CMDS=<<EOF
aei
e asm.bits=32
@ -980,7 +980,7 @@ EOF
RUN
NAME=arm jmptbl flags and comments
FILE=../bins/elf/arm1.bin
FILE=bins/elf/arm1.bin
CMDS=<<EOF
af@sym.__gcc_personality_v0
f~switch.,case.

View File

@ -1,5 +1,5 @@
NAME=noreturn errno
FILE=../bins/mach0/BatteryLife.arm_64.1
FILE=bins/mach0/BatteryLife.arm_64.1
CMDS=<<EOF
e emu.str=1
s 0x100011130
@ -10,7 +10,7 @@ EOF
RUN
NAME=adrp string
FILE=../bins/mach0/SwiftUITest
FILE=bins/mach0/SwiftUITest
CMDS=<<EOF
e emu.str=1
s..886c

View File

@ -37,7 +37,7 @@ EOF
RUN
NAME=avr DISasm: negative baddr
FILE=../../bins/elf/analysis/bugurtos-avr.elf
FILE=bins/elf/analysis/bugurtos-avr.elf
BROKEN=1
CMDS=<<EOF
s 0x506
@ -64,7 +64,7 @@ EOF
RUN
NAME=avr DISasm: IO-Ports
FILE=../bins/firmware/arduino_avr.bin
FILE=bins/firmware/arduino_avr.bin
CMDS=pd 1 @ 0x00000170~?IO
EXPECT=<<EOF
1
@ -338,7 +338,7 @@ EOF
RUN
NAME=avr functions 1
FILE=../bins/firmware/arduino_avr.bin
FILE=bins/firmware/arduino_avr.bin
CMDS=<<EOF
e asm.arch=avr
aaa
@ -367,7 +367,7 @@ EOF
RUN
NAME=search asm commands with internal grep
FILE=../bins/firmware/arduino_avr.bin
FILE=bins/firmware/arduino_avr.bin
ARGS=-a avr
CMDS=/ad ldi~0x6d
EXPECT=<<EOF
@ -376,7 +376,7 @@ EOF
RUN
NAME=search asm commands with filter
FILE=../bins/firmware/arduino_avr.bin
FILE=bins/firmware/arduino_avr.bin
ARGS=-a avr
CMDS=/ad ldi ~ 0x18
EXPECT=<<EOF
@ -386,7 +386,7 @@ EOF
RUN
NAME=search asm commands with filter and align = 2
FILE=../bins/firmware/arduino_avr.bin
FILE=bins/firmware/arduino_avr.bin
ARGS=-a avr
CMDS=<<EOF
e search.align=2
@ -398,7 +398,7 @@ EOF
RUN
NAME=Search rop gadgets for in command
FILE=../bins/firmware/arduino_avr.bin
FILE=bins/firmware/arduino_avr.bin
ARGS=-a avr
CMDS=<<EOF
e search.align=2
@ -435,7 +435,7 @@ EOF
RUN
NAME=Search rop gadgets for IN command with align=2
FILE=../bins/firmware/arduino_avr.bin
FILE=bins/firmware/arduino_avr.bin
ARGS=-a avr
CMDS=<<EOF
e search.align=2
@ -472,7 +472,7 @@ EOF
RUN
NAME=disasm code after search command IN
FILE=../bins/firmware/arduino_avr.bin
FILE=bins/firmware/arduino_avr.bin
ARGS=-a avr
CMDS=<<EOF
s 0
@ -490,7 +490,7 @@ EOF
RUN
NAME=entry point and bin format - arduino
FILE=../bins/firmware/arduino_avr.bin
FILE=bins/firmware/arduino_avr.bin
CMDS=<<EOF
?v $$
i~arch[1]
@ -502,7 +502,7 @@ EOF
RUN
NAME=entry point and bin format - jumpy
FILE=../bins/firmware/jumpy.bin
FILE=bins/firmware/jumpy.bin
CMDS=<<EOF
?v $$
i~arch[1]
@ -514,7 +514,7 @@ EOF
RUN
NAME=avr search
FILE=../bins/firmware/arduino_avr.bin
FILE=bins/firmware/arduino_avr.bin
CMDS=<<EOF
e asm.arch=avr
aaa
@ -526,7 +526,7 @@ EOF
RUN
NAME=avr search - XXX dupped hit
FILE=../bins/firmware/arduino_avr.bin
FILE=bins/firmware/arduino_avr.bin
CMDS=<<EOF
e asm.arch=avr
aaa
@ -538,7 +538,7 @@ EOF
RUN
NAME=avr search 2
FILE=../bins/firmware/arduino_avr.bin
FILE=bins/firmware/arduino_avr.bin
CMDS=<<EOF
e asm.arch=avr
aac @ 0
@ -550,7 +550,7 @@ EOF
RUN
NAME=avr search 3
FILE=../bins/firmware/arduino_avr.bin
FILE=bins/firmware/arduino_avr.bin
CMDS=<<EOF
e asm.arch=avr
aaa
@ -562,7 +562,7 @@ EOF
RUN
NAME=detect false xrefs
FILE=../bins/firmware/arduino_avr.bin
FILE=bins/firmware/arduino_avr.bin
CMDS=<<EOF
e asm.arch=avr
e asm.lines=false
@ -578,7 +578,7 @@ EOF
RUN
NAME=bb generation for SBRx RJMP combo (radare2#12612)
FILE=../bins/elf/avr-sbrx-rjmp.elf
FILE=bins/elf/avr-sbrx-rjmp.elf
CMDS=af@sym.main;afb@sym.main
EXPECT=<<EOF
0x00000000 0x00000016 00:0000 22 j 0x00000018 f 0x00000016

View File

@ -1,5 +1,5 @@
NAME=anal classes
FILE=../bins/pe/cpp_sample.exe
FILE=bins/pe/cpp_sample.exe
CMDS=<<EOF
aar
avrr

View File

@ -1,5 +1,5 @@
NAME=Dalvik HelloWorld afl
FILE=../bins/dex/HelloWorld.dex
FILE=bins/dex/HelloWorld.dex
CMDS=e io.va=0; aa; afl
EXPECT=<<EOF
0x0000025c 1 34 entry0
@ -11,7 +11,7 @@ EOF
RUN
NAME=Dalvik HelloWorld string xref
FILE=../bins/dex/HelloWorld.dex
FILE=bins/dex/HelloWorld.dex
CMDS=aa; axt @ str.Findus
EXPECT=<<EOF
entry0 0x260 [DATA] const-string v1, str.Findus
@ -19,7 +19,7 @@ EOF
RUN
NAME=Dalvik HelloWorld func xref
FILE=../bins/dex/HelloWorld.dex
FILE=bins/dex/HelloWorld.dex
CMDS=e io.va=0; aa; axt @ sym.LHello.method._init___V
EXPECT=<<EOF
entry0 0x26e [CALL] invoke-direct {v0}, LHello.<init>()V ; 0x0

View File

@ -1,5 +1,5 @@
NAME=hexagon jumps
FILE=../bins/elf/analysis/hexagon-hello-loop
FILE=bins/elf/analysis/hexagon-hello-loop
CMDS=<<EOF
s sym.main
af

View File

@ -1,5 +1,5 @@
NAME=java prototypes in json
FILE=../bins/java/jdwpexeccmd.class
FILE=bins/java/jdwpexeccmd.class
CMDS=java prototypes j
EXPECT=<<EOF
{"access_flags":33,"is_public":1,"is_final":0,"is_super":1,"is_interface":0,"is_abstract":0,"is_synthetic":0,"is_annotation":0,"is_enum":0,"name":"JDWPExecCmd","super":"java/lang/Object","interfaces":[],"methods":[],"fields":[],"imports":[]}
@ -7,7 +7,7 @@ EOF
RUN
NAME=java prototypes in ascii
FILE=../bins/java/jdwpexeccmd.class
FILE=bins/java/jdwpexeccmd.class
CMDS=java prototypes a
EXPECT=<<EOF
import java.lang.StringBuilder;
@ -34,7 +34,7 @@ EOF
RUN
NAME=java huge switch case crash
FILE=../bins/java/sjybq.class
FILE=bins/java/sjybq.class
CMDS=e asm.arch=java e scr.null=true pd 200
EXPECT=<<EOF
EOF
@ -347,10 +347,10 @@ EOF
RUN
NAME=java summary
FILE=zip://../bins/java/example.zip::0
FILE=zip://bins/java/example.zip::0
CMDS=java summary
EXPECT=<<EOF
Summary for zip://../bins/java/example.zip::0:
Summary for zip://bins/java/example.zip::0:
Size 0x0:
Constants size: 0x275 count: 69:
Methods size: 0x24e count: 4:
@ -361,7 +361,7 @@ EOF
RUN
NAME=java prototypes a
FILE=zip://../bins/java/example.zip::0
FILE=zip://bins/java/example.zip::0
CMDS=java prototypes a
EXPECT=<<EOF
import java.lang.Object;
@ -389,7 +389,7 @@ EOF
RUN
NAME=java m_info s
FILE=zip://../bins/java/example.zip::0
FILE=zip://bins/java/example.zip::0
CMDS=<<EOF
s 0x312
java m_info s
@ -433,7 +433,7 @@ EOF
RUN
NAME=java f_info s
FILE=zip://../bins/java/example.zip::0
FILE=zip://bins/java/example.zip::0
CMDS=java f_info s
EXPECT=<<EOF
Field Summary Information:

View File

@ -1,5 +1,5 @@
NAME=M68k anal jump
FILE=../bins/smd/LiquidSpaceDodgerV3.bin
FILE=bins/smd/LiquidSpaceDodgerV3.bin
CMDS=ao @ 0x00000230~jump[1]
EXPECT=<<EOF
0x000009f2

View File

@ -1,5 +1,5 @@
NAME=aav find xrefs
FILE=../bins/mach0/macho-bash
FILE=bins/mach0/macho-bash
CMDS=<<EOF
e anal.loads=true
aa;afna;aac;aar;aan;aav

View File

@ -1,5 +1,5 @@
NAME=mips hello ref anal
FILE=../bins/elf/analysis/mips-hello
FILE=bins/elf/analysis/mips-hello
CMDS=<<EOF
s sym.main
aac
@ -11,7 +11,7 @@ EOF
RUN
NAME=mozi aae functions
FILE=../bins/elf/mips-mozi
FILE=bins/elf/mips-mozi
CMDS=<<EOF
aae
aflc
@ -22,7 +22,7 @@ EOF
RUN
NAME=mips hello ref anal
FILE=../bins/elf/analysis/mips.elf
FILE=bins/elf/analysis/mips.elf
ARGS=-e bin.strings=false -e anal.strings=true
CMDS=<<EOF
s entry0
@ -36,7 +36,7 @@ EOF
RUN
NAME=mips hello ref anal subtract
FILE=../bins/elf/analysis/busybox-mips
FILE=bins/elf/analysis/busybox-mips
ARGS=-e bin.strings=false -e anal.strings=true
CMDS=<<EOF
aae @entry0
@ -51,7 +51,7 @@ EOF
RUN
NAME=gp-based ref
FILE=../bins/elf/analysis/mips-hello
FILE=bins/elf/analysis/mips-hello
CMDS=<<EOF
aae @entry0
axt str.Hello_World
@ -104,7 +104,7 @@ EOF
RUN
NAME=mips hello pseudo move instruction
FILE=../bins/elf/analysis/mips-hello
FILE=bins/elf/analysis/mips-hello
ARGS=-e bin.strings=false -e anal.strings=false
CMDS=<<EOF
pd 1 @main+0x18
@ -680,7 +680,7 @@ EOF
RUN
NAME=mips big endian strings, calls, etc. analysis
FILE=../bins/elf/analysis/mipsbe-ip
FILE=bins/elf/analysis/mipsbe-ip
CMDS=<<EOF
s 0x00402088
pd 10

View File

@ -1,5 +1,5 @@
NAME=aFr on ELF
FILE=../bins/elf/msp430.elf
FILE=bins/elf/msp430.elf
CMDS=<<EOF
s main
aFr
@ -55,9 +55,9 @@ RUN
NAME=aFr on same but ihex and .r2 script
BROKEN=1
FILE=ihex://../bins/microcorruption/tutorial
FILE=ihex://bins/microcorruption/tutorial
CMDS=<<EOF
. ../bins/microcorruption/tutorial.r2
. bins/microcorruption/tutorial.r2
s main
aFr
pif

View File

@ -1,5 +1,5 @@
NAME=noreturn 0
FILE=../bins/mach0/ls-osx-x86_64
FILE=bins/mach0/ls-osx-x86_64
CMDS=<<EOF
aaa
tn~0x

View File

@ -1,5 +1,5 @@
NAME=abt
FILE=../bins/mach0/mac-ls2
FILE=bins/mach0/mac-ls2
CMDS=<<EOF
aaa
abt 0x10000168b @ 0x1000011e8
@ -17,7 +17,7 @@ EOF
RUN
NAME=abt2
FILE=../bins/mach0/mac-ls2
FILE=bins/mach0/mac-ls2
CMDS=<<EOF
aaa
abt 0x1000015ac @ 0x1000011e8
@ -33,7 +33,7 @@ EOF
RUN
NAME=abt3
FILE=../bins/mach0/mac-ls2
FILE=bins/mach0/mac-ls2
CMDS=<<EOF
aaa
abt 0x1000016cd @ 0x1000011e8
@ -53,7 +53,7 @@ EOF
RUN
NAME=abtj
FILE=../bins/mach0/mac-ls2
FILE=bins/mach0/mac-ls2
CMDS=<<EOF
aaa
abtj 0x10000168b @ 0x1000011e8

View File

@ -1,5 +1,5 @@
NAME=ppc-aflm
FILE=../bins/elf/analysis/elf-ppc-execstack
FILE=bins/elf/analysis/elf-ppc-execstack
CMDS=<<EOF
aac
aflm
@ -399,7 +399,7 @@ EOF
RUN
NAME=ppc-elf
FILE=../bins/elf/analysis/elf-ppc-execstack
FILE=bins/elf/analysis/elf-ppc-execstack
CMDS=<<EOF
e asm.flags=false
pid 4
@ -413,7 +413,7 @@ EOF
RUN
NAME=ppc-elf entry0 name issue
FILE=../bins/elf/analysis/elf-ppc-execstack
FILE=bins/elf/analysis/elf-ppc-execstack
CMDS=<<EOF
?e
e asm.flags=true
@ -430,7 +430,7 @@ EOF
RUN
NAME=ppc-elf relocs
FILE=../bins/elf/analysis/elf-ppc-execstack
FILE=bins/elf/analysis/elf-ppc-execstack
CMDS=<<EOF
s 0x10001500
pi 1
@ -441,7 +441,7 @@ EOF
RUN
NAME=ppc-update-suffix-esil
FILE=../bins/elf/a6ppc.out
FILE=bins/elf/a6ppc.out
CMDS=<<EOF
40ds
dr?r3

View File

@ -1,5 +1,5 @@
NAME=SuperH iI elf
FILE=../bins/sh/loop.elf
FILE=bins/sh/loop.elf
CMDS=<<EOF
iI~arch
iI~endian
@ -13,7 +13,7 @@ EOF
RUN
NAME=SuperH s af pif
FILE=../bins/sh/loop.elf
FILE=bins/sh/loop.elf
CMDS=<<EOF
s sym._called_in_loop
af

View File

@ -1,5 +1,5 @@
NAME=disass_Linux_sparc
FILE=../bins/elf/elf-Linux-SparcV8-bash
FILE=bins/elf/elf-Linux-SparcV8-bash
CMDS=pi 10 @ entry0
EXPECT=<<EOF
mov g0, fp
@ -16,7 +16,7 @@ EOF
RUN
NAME=disass_Solaris_sparc
FILE=../bins/elf/elf-solaris-sparc-ls
FILE=bins/elf/elf-solaris-sparc-ls
CMDS=pi 10 @ entry0
EXPECT=<<EOF
mov 0, fp
@ -33,7 +33,7 @@ EOF
RUN
NAME=print sparc disassembly ld
FILE=../bins/elf/elf-Linux-SparcV8-bash
FILE=bins/elf/elf-Linux-SparcV8-bash
CMDS=<<EOF
pad d0006354
pad bc100000
@ -51,7 +51,7 @@ EOF
RUN
NAME=cyclomatic sparc
FILE=../bins/elf/elf-Linux-SparcV8-bash
FILE=bins/elf/elf-Linux-SparcV8-bash
CMDS=<<EOF
s main
af
@ -65,7 +65,7 @@ EOF
RUN
NAME=afb sparc
FILE=../bins/elf/elf-Linux-SparcV8-bash
FILE=bins/elf/elf-Linux-SparcV8-bash
CMDS=<<EOF
s sym.zwrite
af
@ -125,7 +125,7 @@ EOF
RUN
NAME=af anal.endsize sparc
FILE=../bins/elf/elf-Linux-SparcV8-bash
FILE=bins/elf/elf-Linux-SparcV8-bash
CMDS=<<EOF
e anal.endsize=0
aaa
@ -138,7 +138,7 @@ EOF
RUN
NAME=af anal.endsize sparc
FILE=../bins/elf/elf-Linux-SparcV8-bash
FILE=bins/elf/elf-Linux-SparcV8-bash
CMDS=<<EOF
e anal.endsize=1
aaa
@ -151,7 +151,7 @@ EOF
RUN
NAME=anal.fcnprefix sparc
FILE=../bins/elf/elf-solaris-sparc-ls
FILE=bins/elf/elf-solaris-sparc-ls
CMDS=<<EOF
s 0x00018c08
e anal.fcnprefix=root
@ -164,7 +164,7 @@ EOF
RUN
NAME=anal.recont=true
FILE=../bins/elf/elf-Linux-SparcV8-bash
FILE=bins/elf/elf-Linux-SparcV8-bash
CMDS=<<EOF
e anal.recont=true
s 0x0002bca0
@ -265,7 +265,7 @@ EOF
RUN
NAME=af anal.endsize sparc
FILE=../bins/elf/elf-Linux-SparcV8-bash
FILE=bins/elf/elf-Linux-SparcV8-bash
CMDS=<<EOF
e anal.endsize=0
aaa

View File

@ -39,7 +39,7 @@ EOF
RUN
NAME=TriCore return_0.elf
FILE=../bins/tricore/return_0.elf
FILE=bins/tricore/return_0.elf
CMDS=iI~arch
EXPECT=<<EOF
arch tricore
@ -47,7 +47,7 @@ EOF
RUN
NAME=TriCore return_0.elf
FILE=../bins/tricore/return_0.elf
FILE=bins/tricore/return_0.elf
CMDS=drp
EXPECT=<<EOF
=PC pc

View File

@ -1,5 +1,5 @@
NAME=ao 10~bytes
FILE=../bins/pe/15004.file
FILE=bins/pe/15004.file
CMDS=ao 10~bytes
EXPECT=<<EOF
bytes: e8d8170000
@ -16,7 +16,7 @@ EOF
RUN
NAME=hang-on-aa/-aac fix (#15004)
FILE=../bins/pe/15004.file
FILE=bins/pe/15004.file
CMDS=<<EOF
aa
e asm.var=false
@ -31,7 +31,7 @@ EOF
RUN
NAME=aap
FILE=../bins/pe/NoREpls.exe
FILE=bins/pe/NoREpls.exe
CMDS=<<EOF
aaa
s 0x00401e80
@ -61,7 +61,7 @@ RUN
NAME=aac pe trampoline fcn name 32bit
FILE=../bins/pe/testx32.exe
FILE=bins/pe/testx32.exe
CMDS=<<EOF
e anal.autoname=false
aac
@ -152,7 +152,7 @@ EOF
RUN
NAME=aaa with axt
FILE=../bins/pe/keygen.exe
FILE=bins/pe/keygen.exe
CMDS=<<EOF
aar
axt 0x4bffb0
@ -163,7 +163,7 @@ EOF
RUN
NAME=aaa with maxbbsz
FILE=../bins/pe/flare_notepad.ex
FILE=bins/pe/flare_notepad.ex
CMDS=<<EOF
e anal.bb.maxsize = 2048
aaa
@ -175,7 +175,7 @@ EOF
RUN
NAME=cyclomatic
FILE=../bins/pe/rabin2.exe
FILE=bins/pe/rabin2.exe
CMDS=<<EOF
s 0x140002510;af;afi~complex[1]
afb.@0x14000253e
@ -187,7 +187,7 @@ EOF
RUN
NAME=lab1B
FILE=../bins/elf/lab1B
FILE=bins/elf/lab1B
BROKEN=1
CMDS=<<EOF
s 0x08048a8b
@ -220,7 +220,7 @@ EOF
RUN
NAME=bug-cjmp
FILE=../bins/mach0/bug-cjmp
FILE=bins/mach0/bug-cjmp
CMDS=<<EOF
af
afb
@ -234,7 +234,7 @@ EOF
RUN
NAME=bug-cjmp-ok
FILE=../bins/mach0/bug-cjmp-ok
FILE=bins/mach0/bug-cjmp-ok
CMDS=<<EOF
af
afb
@ -248,7 +248,7 @@ EOF
RUN
NAME=x86: fastcall argument analysis
FILE=../bins/elf/analysis/fast
FILE=bins/elf/analysis/fast
CMDS=aa ; s sym.fastcaslled ; afc fastcall ; afva ; ?e ; pdf~arg,var
EXPECT=<<EOF
/ 59: sym.fastcaslled (int32_t arg1, int32_t arg2, int32_t arg_8h, int32_t arg_ch);
@ -282,7 +282,7 @@ EOF
RUN
NAME=adf analysis on an obfuscated executable
FILE=../bins/pe/cmd_adf_sample0.exe
FILE=bins/pe/cmd_adf_sample0.exe
BROKEN=1
CMDS=<<EOF
e asm.arch=x86
@ -323,7 +323,7 @@ EOF
RUN
NAME=af anal.endsize
FILE=../bins/elf/echo-bin
FILE=bins/elf/echo-bin
CMDS=<<EOF
e anal.endsize=0
aaa
@ -336,7 +336,7 @@ EOF
RUN
NAME=af anal.endsize
FILE=../bins/elf/echo-bin
FILE=bins/elf/echo-bin
CMDS=<<EOF
e anal.endsize=1
aaa
@ -410,7 +410,7 @@ EOF
RUN
NAME=af+afl on pe/test
FILE=../bins/pe/test.exe
FILE=bins/pe/test.exe
CMDS=<<EOF
s 0x401000
af
@ -428,7 +428,7 @@ EOF
RUN
NAME=anal.fcnprefix
FILE=../bins/pe/test.exe
FILE=bins/pe/test.exe
CMDS=<<EOF
s 0x401000
e anal.fcnprefix=root
@ -447,7 +447,7 @@ EOF
RUN
NAME=syscall emu
FILE=../bins/elf/analysis/hello.raw
FILE=bins/elf/analysis/hello.raw
CMDS=<<EOF
e asm.arch=x86
e asm.bits=32
@ -465,7 +465,7 @@ EOF
RUN
NAME=Windows Function EMU printf
FILE=../bins/pe/standard.exe
FILE=bins/pe/standard.exe
CMDS=<<EOF
e asm.arch=x86
e asm.bits=32
@ -494,7 +494,7 @@ EOF
RUN
NAME=anal.recont=true
FILE=../bins/pe/bcc1.ex
FILE=bins/pe/bcc1.ex
CMDS=<<EOF
e anal.recont=true
af
@ -534,7 +534,7 @@ EOF
RUN
NAME=afb twice
FILE=../bins/pe/bcc1.ex
FILE=bins/pe/bcc1.ex
CMDS=<<EOF
e anal.recont=true
e anal.depth=100
@ -574,7 +574,7 @@ EOF
RUN
NAME=./followbrokenfcnsrefs
FILE=../bins/pe/bdc1.ex
FILE=bins/pe/bdc1.ex
CMDS=<<EOF
e anal.brokenrefs=true
af
@ -599,7 +599,7 @@ EOF
RUN
NAME=function address from operand
FILE=../bins/pe/test.exe
FILE=bins/pe/test.exe
CMDS=<<EOF
e anal.datarefs=true
s 0x401820
@ -613,7 +613,7 @@ EOF
RUN
NAME=function address from data structure
FILE=../bins/pe/test.exe
FILE=bins/pe/test.exe
CMDS=<<EOF
e anal.datarefs=true
e anal.recont=true
@ -629,7 +629,7 @@ RUN
NAME=ensure jump within a function is added to the basic block
FILE=../bins/elf/echo
FILE=bins/elf/echo
CMDS=<<EOF
aaa
s 0xf34
@ -641,7 +641,7 @@ EOF
RUN
NAME=Main in disassembly
FILE=../bins/elf/analysis/ls2
FILE=bins/elf/analysis/ls2
CMDS=<<EOF
aa
pi 1 @ 0x0040488d
@ -652,7 +652,7 @@ EOF
RUN
NAME=Main in disassembly
FILE=../bins/elf/analysis/ls_main_bug
FILE=bins/elf/analysis/ls_main_bug
CMDS=<<EOF
aa
afi @ main ~offset
@ -663,7 +663,7 @@ EOF
RUN
NAME=calc switch table
FILE=../bins/elf/calc.file
FILE=bins/elf/calc.file
CMDS=<<EOF
af@0x8049203
f~?switch
@ -674,7 +674,7 @@ EOF
RUN
NAME=mac-ls switch count
FILE=../bins/mach0/mac-ls
FILE=bins/mach0/mac-ls
CMDS=<<EOF
aaa
f~?switch
@ -685,7 +685,7 @@ EOF
RUN
NAME=mac-ls main switch
FILE=../bins/mach0/mac-ls
FILE=bins/mach0/mac-ls
CMDS=<<EOF
s main;af
f~switch
@ -698,7 +698,7 @@ EOF
RUN
NAME=mac-ls switch count2
FILE=../bins/mach0/mac-ls
FILE=bins/mach0/mac-ls
CMDS=<<EOF
aaa
f~?case
@ -709,7 +709,7 @@ EOF
RUN
NAME=mac-ls switch count3
FILE=../bins/pe/test.exe
FILE=bins/pe/test.exe
CMDS=<<EOF
e anal.jmp.tbl=true
s 0x402cb6
@ -959,7 +959,7 @@ RUN
NAME=mac-ls switch count4
FILE=../bins/pe/ConsoleApplication1.exe
FILE=bins/pe/ConsoleApplication1.exe
CMDS=<<EOF
e anal.jmp.tbl=true
s 0x401090
@ -998,7 +998,7 @@ EOF
RUN
NAME=ls_amd64 all switches
FILE=../bins/jmptbl/ls_amd64
FILE=bins/jmptbl/ls_amd64
CMDS=<<EOF
aaa
CC. @@ switch
@ -1022,7 +1022,7 @@ RUN
NAME=clang_3.8_32 switch/case flags
FILE=../bins/jmptbl/test_clang_3.8_32.out
FILE=bins/jmptbl/test_clang_3.8_32.out
CMDS=<<EOF
aaa
f~switch
@ -1049,7 +1049,7 @@ RUN
NAME=clang_5.0_32 switch/case flags
FILE=../bins/jmptbl/test_clang_5.0_32.out
FILE=bins/jmptbl/test_clang_5.0_32.out
CMDS=<<EOF
aaa
f~switch
@ -1076,7 +1076,7 @@ RUN
NAME=msvc_1900_32 switch/case flags
FILE=../bins/jmptbl/test_msvc_1900_32.exe
FILE=bins/jmptbl/test_msvc_1900_32.exe
CMDS=<<EOF
aaa
f~switch
@ -1121,7 +1121,7 @@ RUN
NAME=msvc_1913_32 switch/case flags
FILE=../bins/jmptbl/test_msvc_1913_32.exe
FILE=bins/jmptbl/test_msvc_1913_32.exe
CMDS=<<EOF
aaa
f~switch
@ -1165,7 +1165,7 @@ EOF
RUN
NAME=cmu_binary_bomb switch case detection
FILE=../bins/jmptbl/cmu_binary_bomb
FILE=bins/jmptbl/cmu_binary_bomb
CMDS=<<EOF
aa
f~switch
@ -1186,7 +1186,7 @@ EOF
RUN
NAME=./nojmpabove
FILE=../bins/pe/test.exe
FILE=bins/pe/test.exe
CMDS=<<EOF
e anal.jmp.above=false
af
@ -1199,7 +1199,7 @@ RUN
NAME=./searchstringrefs
FILE=../bins/pe/test.exe
FILE=bins/pe/test.exe
CMDS=<<EOF
e anal.refstr=true
s 0x401000
@ -1337,7 +1337,7 @@ EOF
RUN
NAME=af fwd-jmp 2
FILE=../bins/elf/license_1.out
FILE=bins/elf/license_1.out
CMDS=<<EOF
af @ main
afb @ main~?
@ -1402,7 +1402,7 @@ EOF
RUN
NAME=./x86_win
FILE=../bins/pe/standard.exe
FILE=bins/pe/standard.exe
CMDS=<<EOF
aaa
afi @ fcn.00402b2d~name
@ -1413,7 +1413,7 @@ EOF
RUN
NAME=./x86_win2
FILE=../bins/pe/ioli/w32/crackme0x00.exe
FILE=bins/pe/ioli/w32/crackme0x00.exe
CMDS=<<EOF
aaa
pd 1 @ sym.imp.msvcrt.dll_strlen~?dword
@ -1424,7 +1424,7 @@ EOF
RUN
NAME=./x86_win3
FILE=../bins/pe/testx64.exe
FILE=bins/pe/testx64.exe
CMDS=<<EOF
aaa
pd 1 @ sym.imp.VCRUNTIME140.dll_memset~?qword
@ -1435,7 +1435,7 @@ EOF
RUN
NAME=./x86_win4
FILE=../bins/pe/96workingsections.exe
FILE=bins/pe/96workingsections.exe
CMDS=<<EOF
aaa
afb @ sym.imp.kernel32.dll_ExitProcess
@ -1445,7 +1445,7 @@ EOF
RUN
NAME=xref aar on op.val
FILE=../bins/elf/analysis/ch2.bin
FILE=bins/elf/analysis/ch2.bin
CMDS=<<EOF
af@main
aar
@ -1457,7 +1457,7 @@ EOF
RUN
NAME=resolve reloc symbols 1
FILE=../bins/elf/libc.so.6
FILE=bins/elf/libc.so.6
CMDS=<<EOF
s 0x0003a4af
pd 1
@ -1468,7 +1468,7 @@ EOF
RUN
NAME=resolve reloc symbols 2
FILE=../bins/elf/libc.so.6
FILE=bins/elf/libc.so.6
CMDS=ir~0x[3]
EXPECT=<<EOF
0x001bf3c0
@ -2827,7 +2827,7 @@ EOF
RUN
NAME=get function in, node before entry
FILE=../bins/elf/fcn_in_test.elf
FILE=bins/elf/fcn_in_test.elf
CMDS=e asm.lines=false;e asm.comments=false;af @ main; pdr @ 0x1180
EXPECT=<<EOF
;-- start2:
@ -2853,7 +2853,7 @@ EOF
RUN
NAME=long basic blocks
FILE=../bins/elf/analysis/movfuscator
FILE=bins/elf/analysis/movfuscator
BROKEN=1
CMDS=<<EOF
af
@ -3449,7 +3449,7 @@ EOF
RUN
NAME=Fix #15315 - Honor RAnalOp.disp in `aar` and `ao`
FILE=../bins/pe/honor_ranal_op_disp.exe
FILE=bins/pe/honor_ranal_op_disp.exe
CMDS=<<EOF
aar
s 0x00402130

View File

@ -1,5 +1,5 @@
NAME=got switch cases
FILE=../bins/elf/game_of_thrones
FILE=bins/elf/game_of_thrones
CMDS=<<EOF
s main
aa > /dev/null
@ -31,7 +31,7 @@ EOF
RUN
NAME=x86_64 getenv this maybe & jmp noret fix
FILE=../bins/elf/ls.odd
FILE=bins/elf/ls.odd
CMDS=<<EOF
aaa
s 0x4901
@ -52,7 +52,7 @@ EOF
RUN
NAME=x86_64 getenv this maybe
FILE=../bins/mach0/ls-osx-x86_64
FILE=bins/mach0/ls-osx-x86_64
CMDS=<<EOF
af
aCe 0x10000143e
@ -63,7 +63,7 @@ EOF
RUN
NAME=x86_64 socket syscall
FILE=../bins/elf/socket-syscall
FILE=bins/elf/socket-syscall
CMDS=<<EOF
aa
aae
@ -82,7 +82,7 @@ EOF
RUN
NAME=x86_64 jmptbl -O0
FILE=../bins/mach0/FMS.uu
FILE=bins/mach0/FMS.uu
CMDS=<<EOF
s sym._checkinput
af
@ -148,7 +148,7 @@ EOF
RUN
NAME=x86_64 main() jmptbl in bins/elf/ls.odd
FILE=../bins/elf/ls.odd
FILE=bins/elf/ls.odd
CMDS=<<EOF
e anal.jmp.tbl=true
s main
@ -457,7 +457,7 @@ EOF
RUN
NAME=x86_64 main() jmptbl in bins/elf/analysis/ls-alxchk
FILE=../bins/elf/analysis/ls-alxchk
FILE=bins/elf/analysis/ls-alxchk
CMDS=<<EOF
e asm.bytes=false
e anal.jmp.tbl=true
@ -476,7 +476,7 @@ EOF
RUN
NAME=aac pe trampoline fcn name 64bit
FILE=../bins/pe/testx64.exe
FILE=bins/pe/testx64.exe
CMDS=<<EOF
e anal.autoname=false
aac
@ -537,7 +537,7 @@ EOF
RUN
NAME=aaa with avra
FILE=../bins/elf/class_test
FILE=bins/elf/class_test
CMDS=<<EOF
aaa
avra
@ -591,7 +591,7 @@ EOF
RUN
NAME=aac on mips be
FILE=../bins/elf/analysis/mipsbe-busybox
FILE=bins/elf/analysis/mipsbe-busybox
CMDS=<<EOF
aac
afl~?
@ -602,7 +602,7 @@ EOF
RUN
NAME=raw aac with maps (less because of wrong map address)
FILE=../bins/elf/analysis/mipsbe-busybox
FILE=bins/elf/analysis/mipsbe-busybox
ARGS=-n -m 0x80000 -a mips -b32 -e cfg.bigendian=true
CMDS=<<EOF
aac
@ -614,7 +614,7 @@ EOF
RUN
NAME=raw aac (using a PIC bin)
FILE=../bins/elf/libmagic.so
FILE=bins/elf/libmagic.so
CMDS=<<EOF
aac
afl~?
@ -625,7 +625,7 @@ EOF
RUN
NAME=raw aac with maps (using a PIC bin)
FILE=../bins/elf/libmagic.so
FILE=bins/elf/libmagic.so
ARGS=-n -m 0x80000 -a arm -b 16 -e cfg.bigendian=false
CMDS=<<EOF
aac
@ -638,7 +638,7 @@ EOF
RUN
NAME=aav without vinfun
FILE=../bins/elf/analysis/mipsbe-busybox
FILE=bins/elf/analysis/mipsbe-busybox
CMDS=<<EOF
af @ 0x0040dea4
e anal.vinfun=false
@ -651,7 +651,7 @@ EOF
RUN
NAME=aav with vinfun
FILE=../bins/elf/analysis/mipsbe-busybox
FILE=bins/elf/analysis/mipsbe-busybox
CMDS=<<EOF
af @ 0x0040dea4
e anal.vinfun=true
@ -664,7 +664,7 @@ EOF
RUN
NAME=aav thumb detection
FILE=../bins/firmware/armthumb.bin
FILE=bins/firmware/armthumb.bin
ARGS=-aarm -b32
CMDS=<<EOF
aav
@ -677,7 +677,7 @@ RUN
NAME=sym is not fcn
FILE=../bins/mach0/mach0-i386
FILE=bins/mach0/mach0-i386
CMDS=<<EOF
aa > /dev/null
afl~sym.__mh_execute_header[0]
@ -688,7 +688,7 @@ RUN
NAME=call-convention
FILE=../bins/elf/analysis/x86-simple
FILE=bins/elf/analysis/x86-simple
CMDS=<<EOF
aa
s entry0
@ -701,7 +701,7 @@ EOF
RUN
NAME=function address
FILE=../bins/mach0/mach0-i386
FILE=bins/mach0/mach0-i386
CMDS=<<EOF
e anal.hasnext=0
aa
@ -715,7 +715,7 @@ EOF
RUN
NAME=afr
FILE=../bins/mach0/mach0-i386
FILE=bins/mach0/mach0-i386
CMDS=<<EOF
e anal.hasnext=0
afr
@ -729,7 +729,7 @@ EOF
RUN
NAME=aF
FILE=../bins/mach0/mach0-i386
FILE=bins/mach0/mach0-i386
CMDS=<<EOF
e anal.hasnext=0
aF
@ -741,7 +741,7 @@ EOF
RUN
NAME=function prelude offsets
FILE=../bins/mach0/mach0-i386
FILE=bins/mach0/mach0-i386
CMDS=<<EOF
s 0x1000
aap
@ -755,7 +755,7 @@ EOF
RUN
NAME=function preludes symbol names
FILE=../bins/mach0/mach0-i386
FILE=bins/mach0/mach0-i386
CMDS=<<EOF
s 0x1000
aap
@ -770,7 +770,7 @@ RUN
NAME=af-*
FILE=../bins/elf/analysis/main
FILE=bins/elf/analysis/main
CMDS=<<EOF
aa
af-*
@ -781,7 +781,7 @@ EOF
RUN
NAME=iS. and iSj. implementation
FILE=../bins/elf/lab1B
FILE=bins/elf/lab1B
CMDS=<<EOF
s 0x188
iS.
@ -807,7 +807,7 @@ EOF
RUN
NAME=iE and iE. implementation
FILE=../bins/elf/lab1B
FILE=bins/elf/lab1B
CMDS=<<EOF
s 0x080489b9
iE.
@ -825,7 +825,7 @@ EOF
RUN
NAME=address information
FILE=../bins/mach0/mach0-i386
FILE=bins/mach0/mach0-i386
CMDS=<<EOF
s entry0
ai
@ -856,7 +856,7 @@ EOF
RUN
NAME=anal/fcn_name
FILE=../bins/elf/analysis/main-g
FILE=bins/elf/analysis/main-g
CMDS=<<EOF
s 0x0040042c
af
@ -868,7 +868,7 @@ EOF
RUN
NAME=anal/fcn_subname
FILE=../bins/elf/analysis/main-g
FILE=bins/elf/analysis/main-g
CMDS=<<EOF
s 0x0040042c
af
@ -882,7 +882,7 @@ EOF
RUN
NAME=anal/name
FILE=../bins/mach0/ls-osx-x86_64
FILE=bins/mach0/ls-osx-x86_64
CMDS=<<EOF
af
afi~name
@ -893,7 +893,7 @@ EOF
RUN
NAME=anal hasnext on main
FILE=../bins/elf/true32
FILE=bins/elf/true32
CMDS=<<EOF
e anal.hasnext=true
af@main
@ -905,7 +905,7 @@ EOF
RUN
NAME=anal without hasnext on main
FILE=../bins/elf/true32
FILE=bins/elf/true32
CMDS=<<EOF
e anal.hasnext=false
af@main
@ -959,7 +959,7 @@ EOF
RUN
NAME=delete memory format with Cf-
FILE=../bins/dmg/src/Hello
FILE=bins/dmg/src/Hello
CMDS=<<EOF
e asm.arch=x86
e asm.bits=64
@ -988,7 +988,7 @@ RUN
NAME=reflines offset 2 (ascii)
FILE=../bins/elf/analysis/ls-alxchk
FILE=bins/elf/analysis/ls-alxchk
CMDS=<<EOF
e asm.relsub=false
e asm.bytes=false
@ -1037,7 +1037,7 @@ EOF
RUN
NAME=reflines offset 3 (ascii)
FILE=../bins/elf/analysis/ls-alxchk
FILE=bins/elf/analysis/ls-alxchk
CMDS=<<EOF
e asm.relsub=false
e asm.bytes=false
@ -1079,7 +1079,7 @@ EOF
RUN
NAME=reflines offset 3 (ascii + wide)
FILE=../bins/elf/analysis/ls-alxchk
FILE=bins/elf/analysis/ls-alxchk
CMDS=<<EOF
e asm.relsub=false
e asm.bytes=false
@ -1122,7 +1122,7 @@ EOF
RUN
NAME=reflines offset 4 (ascii + wide)
FILE=../bins/elf/analysis/ls-alxchk
FILE=bins/elf/analysis/ls-alxchk
CMDS=<<EOF
e asm.relsub=false
e asm.bytes=false
@ -1164,7 +1164,7 @@ EOF
RUN
NAME=reflines in noreturn
FILE=../bins/elf/analysis/ls-alxchk
FILE=bins/elf/analysis/ls-alxchk
CMDS=<<EOF
e asm.relsub=false
e asm.bytes=false
@ -1204,7 +1204,7 @@ EOF
RUN
NAME=⁝ and XREF cmt
FILE=../bins/elf/strenc-ctrlchars
FILE=bins/elf/strenc-ctrlchars
CMDS=<<EOF
e scr.utf8=true
e asm.bytes=false
@ -1225,7 +1225,7 @@ EOF
RUN
NAME=stackptr
FILE=../bins/mach0/mac-ls
FILE=bins/mach0/mac-ls
CMDS=<<EOF
s 0x1000039b6
af
@ -1324,7 +1324,7 @@ EOF
RUN
NAME=Basic type Matching
FILE=../bins/elf/analysis/x86-helloworld-gcc
FILE=bins/elf/analysis/x86-helloworld-gcc
CMDS=<<EOF
s sym.main
aa
@ -1341,7 +1341,7 @@ EOF
RUN
NAME=call not function
FILE=../bins/pe/crackme0x00.exe
FILE=bins/pe/crackme0x00.exe
CMDS=<<EOF
aa
s sym._main
@ -1362,7 +1362,7 @@ EOF
RUN
NAME=Settings global calling convention
FILE=../bins/pe/msvcfindmain.exe
FILE=bins/pe/msvcfindmain.exe
CMDS=<<EOF
afc=pascal
aaa
@ -1374,7 +1374,7 @@ EOF
RUN
NAME=1: Wrong calling convention
FILE=../bins/pe/crackme0x00.exe
FILE=bins/pe/crackme0x00.exe
CMDS=<<EOF
s entry0
af
@ -1392,7 +1392,7 @@ EOF
RUN
NAME=2: Wrong calling convention
FILE=../bins/mach0/ls-osx-x86_64
FILE=bins/mach0/ls-osx-x86_64
CMDS=<<EOF
s entry0
aaa
@ -1409,7 +1409,7 @@ EOF
RUN
NAME=Function definition
FILE=../bins/elf/arm1.bin
FILE=bins/elf/arm1.bin
CMDS=<<EOF
afr @ main
s 0x000082cc
@ -1421,7 +1421,7 @@ EOF
RUN
NAME=Function definition (autorename)
FILE=../bins/pe/hello-mingw32
FILE=bins/pe/hello-mingw32
CMDS=<<EOF
aaa
s 0x00401255
@ -1433,7 +1433,7 @@ EOF
RUN
NAME=Function definition indirect calls
FILE=.../bins/pe/msvcfindmain.exe
FILE=bins/pe/msvcfindmain.exe
BROKEN=1
CMDS=<<EOF
aaa
@ -1445,7 +1445,7 @@ EOF
RUN
NAME=Function definition
FILE=../bins/elf/ioli/crackme0x00
FILE=bins/elf/ioli/crackme0x00
CMDS=<<EOF
aaa
s 0x08048469
@ -1457,7 +1457,7 @@ EOF
RUN
NAME=afvt
FILE=../bins/mach0/arg
FILE=bins/mach0/arg
CMDS=<<EOF
s sym._call
af
@ -1473,7 +1473,7 @@ EOF
RUN
NAME=afvt
FILE=../bins/mach0/macho
FILE=bins/mach0/macho
CMDS=<<EOF
s 0x100000b60
af
@ -1488,7 +1488,7 @@ EOF
RUN
NAME=afvn
FILE=../bins/mach0/macho
FILE=bins/mach0/macho
CMDS=<<EOF
s 0x100000b60
af
@ -1503,7 +1503,7 @@ EOF
RUN
NAME=afvn + afvn
FILE=../bins/mach0/macho
FILE=bins/mach0/macho
CMDS=<<EOF
s 0x100000b60
af
@ -1519,7 +1519,7 @@ EOF
RUN
NAME=afvt + afvn
FILE=../bins/mach0/macho
FILE=bins/mach0/macho
CMDS=<<EOF
s 0x100000b60
af
@ -1535,7 +1535,7 @@ EOF
RUN
NAME=afvn + afvt
FILE=../bins/mach0/macho
FILE=bins/mach0/macho
CMDS=<<EOF
s 0x100000b60
af
@ -1551,7 +1551,7 @@ EOF
RUN
NAME=afvt + afvt
FILE=../bins/mach0/macho
FILE=bins/mach0/macho
CMDS=<<EOF
s 0x100000b60
af
@ -1568,7 +1568,7 @@ RUN
NAME=afva for fastcall with no esp vars
FILE=../bins/elf/analysis/fast
FILE=bins/elf/analysis/fast
CMDS=<<EOF
aa
s sym.fastcaslled
@ -1614,7 +1614,7 @@ EOF
RUN
NAME=afva for cdecl/stdcall with no esp vars
FILE=../bins/elf/analysis/fast
FILE=bins/elf/analysis/fast
CMDS=<<EOF
e asm.calls=false
aa
@ -1689,7 +1689,7 @@ EOF
RUN
NAME=afvb & afvn
FILE=../bins/efi/bootia32.efi
FILE=bins/efi/bootia32.efi
CMDS=<<EOF
af
afvn ImageHandle arg_8h
@ -1704,7 +1704,7 @@ EOF
RUN
NAME=afvb* & afvn
FILE=../bins/efi/bootia32.efi
FILE=bins/efi/bootia32.efi
CMDS=<<EOF
af
afvn ImageHandle arg_8h
@ -1719,7 +1719,7 @@ EOF
RUN
NAME=afvb idx... & afvn
FILE=../bins/efi/bootia32.efi
FILE=bins/efi/bootia32.efi
CMDS=<<EOF
af
afvb 8 ImageHandle blah @ 0x10002d8d
@ -1731,7 +1731,7 @@ EOF
RUN
NAME=afvbj
FILE=../bins/efi/bootia32.efi
FILE=bins/efi/bootia32.efi
CMDS=<<EOF
af
afvb 8 ImageHandle blah @ 0x10002d8d
@ -1743,7 +1743,7 @@ EOF
RUN
NAME=afvb-ArgName
FILE=../bins/efi/bootia32.efi
FILE=bins/efi/bootia32.efi
CMDS=<<EOF
af
afvb 8 ImageHandle blah @ 0x10002d8d
@ -1756,7 +1756,7 @@ EOF
RUN
NAME=afvr & afvn
FILE=../bins/efi/bootia32.efi
FILE=bins/efi/bootia32.efi
CMDS=<<EOF
af
afvr esi myreg int @ 0x10002d8d
@ -1771,7 +1771,7 @@ EOF
RUN
NAME=afvr idx & afvr*
FILE=../bins/efi/bootia32.efi
FILE=bins/efi/bootia32.efi
CMDS=<<EOF
af
afvr esi myreg int @ 0x10002d8d
@ -1785,7 +1785,7 @@ EOF
RUN
NAME=afvr-name
FILE=../bins/efi/bootia32.efi
FILE=bins/efi/bootia32.efi
CMDS=<<EOF
af
afvr esi myreg int @ 0x10002d8d
@ -1798,7 +1798,7 @@ EOF
RUN
NAME=afvb-* afvr-*
FILE=../bins/efi/bootia32.efi
FILE=bins/efi/bootia32.efi
CMDS=<<EOF
af
afvb-*
@ -1813,7 +1813,7 @@ EOF
RUN
NAME=anal vars count
FILE=../bins/mach0/ls-osx-x86_64
FILE=bins/mach0/ls-osx-x86_64
CMDS=<<EOF
af
afvb~?
@ -1824,7 +1824,7 @@ EOF
RUN
NAME=anal vars retype
FILE=../bins/mach0/ls-osx-x86_64
FILE=bins/mach0/ls-osx-x86_64
CMDS=<<EOF
af
afvt var_30h char
@ -1836,7 +1836,7 @@ EOF
RUN
NAME=anal vars rename
FILE=../bins/mach0/ls-osx-x86_64
FILE=bins/mach0/ls-osx-x86_64
CMDS=<<EOF
af
afvn newname var_30h
@ -1863,7 +1863,7 @@ EOF
RUN
NAME=vars display in debugger
FILE=../bins/elf/analysis/fast
FILE=bins/elf/analysis/fast
CMDS=<<EOF
aa
s 0x0804843b
@ -1877,7 +1877,7 @@ EOF
RUN
NAME=afvR and afvW test
FILE=../bins/elf/crackme0x05
FILE=bins/elf/crackme0x05
CMDS=<<EOF
aa
s main
@ -1895,7 +1895,7 @@ EOF
RUN
NAME=axt avr
FILE=../bins/firmware/main.avr
FILE=bins/firmware/main.avr
CMDS=<<EOF
f str.hello 12 @ 0x276
Csa 12 @ str.hello
@ -1909,7 +1909,7 @@ EOF
RUN
NAME=axt capstone x86
FILE=../bins/elf/analysis/main
FILE=bins/elf/analysis/main
CMDS=<<EOF
e asm.arch = x86
e anal.arch = x86
@ -1924,7 +1924,7 @@ EOF
RUN
NAME=axt capstone x86: IOLI0
FILE=../bins/elf/ioli/crackme0x00
FILE=bins/elf/ioli/crackme0x00
CMDS=<<EOF
e asm.arch = x86
e anal.arch = x86
@ -1939,7 +1939,7 @@ EOF
RUN
NAME=axt capstone x86: IOLI7 aa
FILE=../bins/elf/ioli/crackme0x07
FILE=bins/elf/ioli/crackme0x07
CMDS=<<EOF
aaa
axt @ sym.imp.exit
@ -1952,7 +1952,7 @@ EOF
RUN
NAME=axt capstone x86: IOLI7 aa 2
FILE=../bins/elf/ioli/crackme0x07
FILE=bins/elf/ioli/crackme0x07
CMDS=<<EOF
aaaa
axt @ sym.imp.exit
@ -1965,7 +1965,7 @@ EOF
RUN
NAME=axt respect relsub
FILE=../bins/pe/ibknoreloc64.exe
FILE=bins/pe/ibknoreloc64.exe
CMDS=<<EOF
aaa
e asm.relsub=false
@ -2020,7 +2020,7 @@ EOF
RUN
NAME=axt unknown function
FILE=../bins/pe/lab11.malware
FILE=bins/pe/lab11.malware
CMDS=<<EOF
aaa
axt fcn.00401270
@ -2031,7 +2031,7 @@ EOF
RUN
NAME=axf string ref capstone x86
FILE=../bins/elf/ioli/crackme0x03
FILE=bins/elf/ioli/crackme0x03
CMDS=<<EOF
e asm.arch = x86
e anal.arch = x86
@ -2115,7 +2115,7 @@ EOF
RUN
NAME=strings xref issue
FILE=../bins/elf/redpill
FILE=bins/elf/redpill
CMDS=<<EOF
e anal.strings=true
aa
@ -2140,7 +2140,7 @@ EOF
RUN
NAME=reference to like mov [0x400000], 0x1234
FILE=../bins/elf/analysis/reference.out
FILE=bins/elf/analysis/reference.out
CMDS=<<EOF
aaa
axt@0x0804a01c
@ -2171,7 +2171,7 @@ EOF
RUN
NAME=reference PIC binary
FILE=../bins/elf/analysis/xrefpic
FILE=bins/elf/analysis/xrefpic
CMDS=<<EOF
e anal.strings=true
aa
@ -2184,7 +2184,7 @@ EOF
RUN
NAME=strings xref issue without relsub
FILE=../bins/elf/redpill
FILE=bins/elf/redpill
CMDS=<<EOF
e anal.strings=true
e asm.relsub=false
@ -2210,7 +2210,7 @@ EOF
RUN
NAME=reference PIC binary without relsub
FILE=../bins/elf/analysis/xrefpic
FILE=bins/elf/analysis/xrefpic
CMDS=<<EOF
e anal.strings=true
e asm.relsub=false
@ -2224,7 +2224,7 @@ EOF
RUN
NAME=refs on PIC binary disassembly
FILE=../bins/elf/analysis/xrefpic
FILE=bins/elf/analysis/xrefpic
CMDS=<<EOF
e anal.strings=true
aa
@ -2237,7 +2237,7 @@ EOF
RUN
NAME=refs on PIC binary disassembly (color)
FILE=../bins/elf/analysis/xrefpic
FILE=bins/elf/analysis/xrefpic
CMDS=<<EOF
e asm.bytes=false
e asm.comments=false
@ -2264,7 +2264,7 @@ EOF
RUN
NAME=refs with aar
FILE=../bins/elf/crackme
FILE=bins/elf/crackme
CMDS=<<EOF
e asm.lines.bb=false
e asm.lines.fcn=false
@ -2286,7 +2286,7 @@ EOF
RUN
NAME=refs with afr
FILE=../bins/elf/crackme
FILE=bins/elf/crackme
CMDS=<<EOF
e asm.lines.bb=false
e asm.lines.fcn=false
@ -2343,7 +2343,7 @@ EOF
RUN
NAME=xrefs and overlapping basic blocks
FILE=../bins/elf/analysis/ls-linux-x86_64-zlul
FILE=bins/elf/analysis/ls-linux-x86_64-zlul
CMDS=<<EOF
aaa
axt main
@ -2354,7 +2354,7 @@ EOF
RUN
NAME=unique function names
FILE=../bins/elf/bash
FILE=bins/elf/bash
CMDS=<<EOF
aaa
f~strlen~390
@ -2364,7 +2364,7 @@ EOF
RUN
NAME=no function split without overlapping blocks
FILE=../bins/elf/libc.so.6
FILE=bins/elf/libc.so.6
CMDS=<<EOF
aac
s 0x2254d
@ -2377,7 +2377,7 @@ EOF
RUN
NAME=noreturn of reloc-functions
FILE=../bins/elf/ls
FILE=bins/elf/ls
CMDS=<<EOF
aaa
afbr 0x80b0
@ -2913,7 +2913,7 @@ EOF
RUN
NAME=Windows Function EMU LoadStringA
FILE=../bins/pe/standard.exe
FILE=bins/pe/standard.exe
CMDS=<<EOF
e asm.arch=x86
e asm.bits=32
@ -2934,7 +2934,7 @@ EOF
RUN
NAME=Linux fcnsign test
FILE=../bins/elf/analysis/ls-linux64
FILE=bins/elf/analysis/ls-linux64
CMDS=<<EOF
e asm.arch=x86
e asm.bits=64
@ -3003,7 +3003,7 @@ EOF
RUN
NAME=x86-64 after unknown jmp
FILE=../bins/elf/analysis/ls-linux64
FILE=bins/elf/analysis/ls-linux64
CMDS=<<EOF
s 0x5c50
af
@ -3029,7 +3029,7 @@ EOF
RUN
NAME=t.anal/x86/aap
FILE=../bins/mach0/ls-osx-x86_64
FILE=bins/mach0/ls-osx-x86_64
CMDS=<<EOF
f-sym.func.*
aap
@ -3042,7 +3042,7 @@ EOF
RUN
NAME=mac-ls switch count
FILE=../bins/mach0/ls-osx-x86_64
FILE=bins/mach0/ls-osx-x86_64
CMDS=<<EOF
e anal.jmp.tbl=true
af
@ -3054,7 +3054,7 @@ EOF
RUN
NAME=gcc_5.5.0_64 switch/case flags, meta, hints, etc.
FILE=../bins/jmptbl/test_gcc_5.5.0_64.out
FILE=bins/jmptbl/test_gcc_5.5.0_64.out
CMDS=<<EOF
aaa
f~switch
@ -3136,7 +3136,7 @@ EOF
RUN
NAME=gcc_7.2.0_64 switch/case flags
FILE=../bins/jmptbl/test_gcc_7.2.0_64.out
FILE=bins/jmptbl/test_gcc_7.2.0_64.out
CMDS=<<EOF
aaa
f~switch
@ -3163,7 +3163,7 @@ EOF
RUN
NAME=clang_3.8_64 switch/case flags
FILE=../bins/jmptbl/test_clang_3.8_64.out
FILE=bins/jmptbl/test_clang_3.8_64.out
CMDS=<<EOF
aaa
f~switch
@ -3189,7 +3189,7 @@ EOF
RUN
NAME=clang_5.0_64 switch/case flags
FILE=../bins/jmptbl/test_clang_5.0_64.out
FILE=bins/jmptbl/test_clang_5.0_64.out
CMDS=<<EOF
aaa
f~switch
@ -3215,7 +3215,7 @@ EOF
RUN
NAME=msvc_1700_64 switch/case flags
FILE=../bins/jmptbl/test_msvc_1700_64.exe
FILE=bins/jmptbl/test_msvc_1700_64.exe
CMDS=<<EOF
aaa
f~switch
@ -3260,7 +3260,7 @@ EOF
RUN
NAME=msvc_1900_64 switch/case flags
FILE=../bins/jmptbl/test_msvc_1900_64.exe
FILE=bins/jmptbl/test_msvc_1900_64.exe
CMDS=<<EOF
aaa
f~switch
@ -3322,7 +3322,7 @@ EOF
RUN
NAME=./noncode
FILE=../bins/mach0/ls-osx-x86_64
FILE=bins/mach0/ls-osx-x86_64
CMDS=<<EOF
e anal.noncode=false
afr
@ -3334,7 +3334,7 @@ EOF
RUN
NAME=./noncode
FILE=../bins/mach0/ls-osx-x86_64
FILE=bins/mach0/ls-osx-x86_64
CMDS=<<EOF
e anal.noncode=false
e anal.calls=true
@ -3347,7 +3347,7 @@ EOF
RUN
NAME=Microsoft x64 CC Args/Vars
FILE=../bins/pe/testx64.exe
FILE=bins/pe/testx64.exe
CMDS=<<EOF
e asm.comments=0
s 0x140001080
@ -3412,7 +3412,7 @@ EOF
RUN
NAME=x86_64 retpoline jmptbl
FILE=../bins/elf/retpoline
FILE=bins/elf/retpoline
CMDS=<<EOF
s 0x780
af
@ -3428,7 +3428,7 @@ EOF
RUN
NAME=x86_64 retpoline disabled jmptbl
FILE=../bins/elf/retpoline
FILE=bins/elf/retpoline
CMDS=<<EOF
e anal.jmp.retpoline = false
s 0x780

View File

@ -1,5 +1,5 @@
NAME=dbg.fork.child.swstep
FILE=../bins/elf/analysis/x64-fork-test
FILE=bins/elf/analysis/x64-fork-test
ARGS=-d
CMDS=<<EOF
e scr.color=0
@ -23,7 +23,7 @@ EOF
RUN
NAME=dbg.fork.child.hwstep
FILE=../bins/elf/analysis/x64-fork-test
FILE=bins/elf/analysis/x64-fork-test
ARGS=-d
CMDS=<<EOF
e scr.color=0

View File

@ -1,5 +1,5 @@
NAME=dbg.fork.child.bp.swstep
FILE=../bins/elf/analysis/x64-fork-test
FILE=bins/elf/analysis/x64-fork-test
ARGS=-d
CMDS=<<EOF
e scr.color=0
@ -26,7 +26,7 @@ EOF
RUN
NAME=dbg.fork.child.bp.hwstep
FILE=../bins/elf/analysis/x64-fork-test
FILE=bins/elf/analysis/x64-fork-test
ARGS=-d
CMDS=<<EOF
e scr.color=0

View File

@ -1,5 +1,5 @@
NAME=dbg_aslr
FILE=../bins/elf/analysis/pie
FILE=bins/elf/analysis/pie
ARGS=-d
CMDS=pi 3 @ entry0
EXPECT=<<EOF

View File

@ -1,5 +1,5 @@
NAME=dbg.aaa
FILE=../bins/elf/true
FILE=bins/elf/true
ARGS=-dA
CMDS=<<EOF
dcu main

View File

@ -1,5 +1,5 @@
NAME=dbg.aslr
FILE=../bins/elf/analysis/pie
FILE=bins/elf/analysis/pie
ARGS=-d
CMDS=pi 3 @ entry0
EXPECT=<<EOF
@ -10,7 +10,7 @@ EOF
RUN
NAME=function rebase
FILE=../bins/elf/analysis/pie
FILE=bins/elf/analysis/pie
ARGS=-d
CMDS=<<EOF
?v main-`dmm~pie[0]`
@ -24,7 +24,7 @@ EOF
RUN
NAME=bp rebase
FILE=../bins/elf/analysis/pie
FILE=bins/elf/analysis/pie
ARGS=-d
CMDS=<<EOF
aa
@ -40,7 +40,7 @@ EOF
RUN
NAME=ref rebase
FILE=../bins/elf/hello_world
FILE=bins/elf/hello_world
ARGS=-d
CMDS=<<EOF
aa
@ -55,7 +55,7 @@ EOF
RUN
NAME=flag rebase
FILE=../bins/elf/analysis/pie
FILE=bins/elf/analysis/pie
ARGS=-d
CMDS=<<EOF
aa
@ -72,7 +72,7 @@ EOF
RUN
NAME=var rebase
FILE=../bins/elf/hello_world
FILE=bins/elf/hello_world
ARGS=-d
CMDS=<<EOF
aa

View File

@ -1,5 +1,5 @@
NAME=dbg.dc+ds.swstep
FILE=../bins/elf/analysis/elf-nx
FILE=bins/elf/analysis/elf-nx
ARGS=-d
CMDS=<<EOF
e scr.color=0
@ -22,7 +22,7 @@ EOF
RUN
NAME=dbg.dc+ds.swstep2
FILE=../bins/elf/analysis/x86-helloworld-gcc
FILE=bins/elf/analysis/x86-helloworld-gcc
ARGS=-d
CMDS=<<EOF
e scr.color=0
@ -43,7 +43,7 @@ EOF
RUN
NAME=dbg.dc+ds.hwstep
FILE=../bins/elf/analysis/elf-nx
FILE=bins/elf/analysis/elf-nx
ARGS=-d
CMDS=<<EOF
e scr.color=0
@ -66,7 +66,7 @@ EOF
RUN
NAME=dbg.dc+ds.hwstep2
FILE=../bins/elf/analysis/x86-helloworld-gcc
FILE=bins/elf/analysis/x86-helloworld-gcc
ARGS=-d
CMDS=<<EOF
e scr.color=0
@ -87,7 +87,7 @@ EOF
RUN
NAME=dbg.dcC+ds.swstep1
FILE=../bins/elf/analysis/tiny-crackme-vm-x86_64
FILE=bins/elf/analysis/tiny-crackme-vm-x86_64
ARGS=-d
CMDS=<<EOF
e scr.color=0
@ -109,7 +109,7 @@ EOF
RUN
NAME=dbg.dcC+ds.swstep2
FILE=../bins/elf/analysis/tiny-crackme-vm-x86_64
FILE=bins/elf/analysis/tiny-crackme-vm-x86_64
ARGS=-d
CMDS=<<EOF
e scr.color=0
@ -130,7 +130,7 @@ EOF
RUN
NAME=dbg.dcC+ds.swstep3
FILE=../bins/elf/analysis/tiny-crackme-vm-x86_64
FILE=bins/elf/analysis/tiny-crackme-vm-x86_64
ARGS=-d
CMDS=<<EOF
e scr.color=0
@ -153,7 +153,7 @@ EOF
RUN
NAME=dbg.dbd+dbe
FILE=../bins/elf/analysis/x64-loop
FILE=bins/elf/analysis/x64-loop
ARGS=-d
CMDS=<<EOF
e scr.color=0
@ -179,7 +179,7 @@ EOF
RUN
NAME=dbg.dc+db
FILE=../bins/elf/analysis/x86-helloworld-gcc
FILE=bins/elf/analysis/x86-helloworld-gcc
ARGS=-d
CMDS=<<EOF
e dbg.swstep=true
@ -198,7 +198,7 @@ EOF
RUN
NAME=valid db
FILE=../bins/elf/analysis/x64-loop
FILE=bins/elf/analysis/x64-loop
ARGS=-d
CMDS=<<EOF
e scr.color=0
@ -211,7 +211,7 @@ EOF
RUN
NAME=invalid db
FILE=../bins/elf/analysis/x64-loop
FILE=bins/elf/analysis/x64-loop
ARGS=-d
CMDS=<<EOF
e scr.color=0
@ -224,7 +224,7 @@ EOF
RUN
NAME=dbg.bp_remove_index
FILE=../bins/elf/analysis/x86-helloworld-gcc
FILE=bins/elf/analysis/x86-helloworld-gcc
ARGS=-d
CMDS=<<EOF
db main
@ -254,7 +254,7 @@ EOF
RUN
NAME=dbH
FILE=../bins/elf/analysis/x64-loop
FILE=bins/elf/analysis/x64-loop
ARGS=-d
CMDS=<<EOF
e scr.color=0

View File

@ -1,5 +1,5 @@
NAME=dbg.dc.loop.swstep
FILE=../bins/elf/analysis/x64-loop
FILE=bins/elf/analysis/x64-loop
ARGS=-d
CMDS=<<EOF
e scr.color=0
@ -24,7 +24,7 @@ EOF
RUN
NAME=dbg.dc.loop.hwstep
FILE=../bins/elf/analysis/x64-loop
FILE=bins/elf/analysis/x64-loop
ARGS=-d
CMDS=<<EOF
e scr.color=0

View File

@ -1,5 +1,5 @@
NAME=dbg.cmdbps
FILE=../bins/elf/analysis/elf-nx
FILE=bins/elf/analysis/elf-nx
ARGS=-d
CMDS=<<EOF
e scr.color=0

View File

@ -1,5 +1,5 @@
NAME=dbg.dcu+step
FILE=../bins/elf/analysis/elf-nx
FILE=bins/elf/analysis/elf-nx
ARGS=-d
CMDS=<<EOF
e scr.color=0
@ -16,7 +16,7 @@ EOF
RUN
NAME=dbg.dcu+step
FILE=../bins/elf/analysis/elf-nx
FILE=bins/elf/analysis/elf-nx
ARGS=-d
CMDS=<<EOF
e scr.color=0

View File

@ -1,5 +1,5 @@
NAME=debug continue back from callee
FILE=../bins/elf/analysis/calls_x64
FILE=bins/elf/analysis/calls_x64
ARGS=-d
CMDS=<<EOF
db main
@ -17,7 +17,7 @@ EOF
RUN
NAME=debug continue back from caller
FILE=../bins/elf/analysis/calls_x64
FILE=bins/elf/analysis/calls_x64
ARGS=-d
CMDS=<<EOF
db main
@ -35,7 +35,7 @@ EOF
RUN
NAME=dbg.manycontback
FILE=../bins/elf/analysis/ls-linux-x86_64-zlul
FILE=bins/elf/analysis/ls-linux-x86_64-zlul
ARGS=-d
CMDS=<<EOF
db main

View File

@ -1,5 +1,5 @@
NAME=use of dmh, then any command which use grep and index
FILE=../bins/elf/simple_malloc_x86_64
FILE=bins/elf/simple_malloc_x86_64
ARGS=-d
CMDS=<<EOF
db sym.main
@ -15,7 +15,7 @@ EOF
RUN
NAME=dmh allocated
FILE=../bins/elf/simple_malloc_x86_64
FILE=bins/elf/simple_malloc_x86_64
ARGS=-d
CMDS=<<EOF
dcu main
@ -31,7 +31,7 @@ EOF
RUN
NAME=dmh/dmha with memory dump
FILE=../bins/heap/linux_glibc-2.30_x64.bin
FILE=bins/heap/linux_glibc-2.30_x64.bin
ARGS=-n
CMDS=<<EOF
#re-map arena and [heap]
@ -52,7 +52,7 @@ EOF
RUN
NAME=dmht with memory dump
FILE=../bins/heap/linux_glibc-2.30_x64.bin
FILE=bins/heap/linux_glibc-2.30_x64.bin
ARGS=-n
CMDS=<<EOF
#re-map arena and [heap]

View File

@ -1,5 +1,5 @@
NAME=drm xmm registers
FILE=../bins/elf/sse2-add
FILE=bins/elf/sse2-add
ARGS=-d
CMDS=<<EOF
dcu main
@ -39,7 +39,7 @@ EOF
RUN
NAME=drm xmm registers - shorthand commands
FILE=../bins/elf/sse2-add
FILE=bins/elf/sse2-add
ARGS=-d
CMDS=<<EOF
dcu main
@ -58,7 +58,7 @@ EOF
RUN
NAME=drm xmm registers - explicit packing all regs
FILE=../bins/elf/allxmm
FILE=bins/elf/allxmm
ARGS=-d
CMDS=<<EOF
16ds
@ -153,7 +153,7 @@ EOF
RUN
NAME=drm set xmm registers
FILE=../bins/elf/allxmm
FILE=bins/elf/allxmm
ARGS=-d
CMDS=<<EOF
drm xmm0 1 64 = 0x0001020304050607
@ -197,7 +197,7 @@ RUN
NAME=drm xmm registers - double and float print
FILE=../bins/elf/allxmm
FILE=bins/elf/allxmm
ARGS=-d
CMDS=<<EOF
16ds
@ -242,7 +242,7 @@ RUN
NAME=drm ymm registers
FILE=../bins/elf/ymm
FILE=bins/elf/ymm
ARGS=-d
CMDS=<<EOF
16ds
@ -388,4 +388,4 @@ ymm15 = 18454948.089844 21810388.090625 25165828.091406 28521268.092188
0.700000
0x3f3333333f19999a3f0000003ecccccd3e99999a3e4ccccd3dcccccd00000000
EOF
RUN
RUN

View File

@ -1,5 +1,5 @@
NAME=dbg.fds.count
FILE=../bins/elf/analysis/elf-nx
FILE=bins/elf/analysis/elf-nx
ARGS=-d
CMDS=<<EOF
dd~?
@ -11,7 +11,7 @@ EOF
RUN
NAME=dbg.fds.close
FILE=../bins/elf/analysis/elf-nx
FILE=bins/elf/analysis/elf-nx
ARGS=-d
BROKEN=1
CMDS=<<EOF
@ -27,7 +27,7 @@ EOF
RUN
NAME=dbg.fds.count
FILE=../bins/elf/analysis/elf-nx
FILE=bins/elf/analysis/elf-nx
ARGS=-d
CMDS=<<EOF
dd~?

View File

@ -13,7 +13,7 @@ EOF
RUN
NAME=dbg.read.entry0
FILE=../bins/elf/analysis/elf-nx
FILE=bins/elf/analysis/elf-nx
ARGS=-d
CMDS=<<EOF
s entry0

View File

@ -1,5 +1,5 @@
NAME=dbg.maps.count/
FILE=../bins/elf/analysis/elf-nx
FILE=bins/elf/analysis/elf-nx
ARGS=-d
CMDS=<<EOF
dm~?/
@ -11,7 +11,7 @@ EOF
RUN
NAME=dbg.maps.count
FILE=../bins/elf/analysis/elf-nx
FILE=bins/elf/analysis/elf-nx
ARGS=-d
CMDS=<<EOF
dm~?
@ -23,7 +23,7 @@ EOF
RUN
NAME=dbg.maps.count.after.map
FILE=../bins/elf/analysis/x86-helloworld-gcc
FILE=bins/elf/analysis/x86-helloworld-gcc
ARGS=-d
CMDS=<<EOF
dm~?
@ -41,7 +41,7 @@ EOF
RUN
NAME=dbg.modules.count
FILE=../bins/elf/analysis/elf-nx
FILE=bins/elf/analysis/elf-nx
ARGS=-d
CMDS=dmm~?
EXPECT=<<EOF
@ -51,7 +51,7 @@ RUN
NAME=dbg.curmod.count
BROKEN=1
FILE=../bins/elf/analysis/elf-nx
FILE=bins/elf/analysis/elf-nx
ARGS=-d
CMDS=dmm.~?
EXPECT=<<EOF
@ -60,7 +60,7 @@ EOF
RUN
NAME=db.maps.symbols.after.map.complete
FILE=../bins/elf/analysis/x86-helloworld-gcc
FILE=bins/elf/analysis/x86-helloworld-gcc
ARGS=-d
BROKEN=1
CMDS=<<EOF
@ -80,7 +80,7 @@ EOF
RUN
NAME=dbg.maps.sections.after.map.only_filtered
FILE=../bins/elf/analysis/x86-helloworld-gcc
FILE=bins/elf/analysis/x86-helloworld-gcc
ARGS=-d
BROKEN=1
CMDS=<<EOF
@ -105,7 +105,7 @@ RUN
NAME=dbg.maps.sections.after.map.complete
FILE=../bins/elf/analysis/x86-helloworld-gcc
FILE=bins/elf/analysis/x86-helloworld-gcc
ARGS=-d
BROKEN=1
CMDS=<<EOF
@ -137,7 +137,7 @@ EOF
RUN
NAME=db.maps.sections.are.singletons
FILE=../bins/elf/analysis/x86-helloworld-gcc
FILE=bins/elf/analysis/x86-helloworld-gcc
ARGS=-d
BROKEN=1
CMDS=<<EOF
@ -165,7 +165,7 @@ EOF
RUN
NAME=db.maps.current.section.after.dmS
FILE=../bins/elf/analysis/x86-helloworld-gcc
FILE=bins/elf/analysis/x86-helloworld-gcc
ARGS=-d
BROKEN=1
CMDS=<<EOF

View File

@ -27,7 +27,7 @@ EOF
RUN
NAME=ood after open in debug mode
FILE=../bins/elf/analysis/x86-helloworld-gcc
FILE=bins/elf/analysis/x86-helloworld-gcc
ARGS=-d
CMDS=<<EOF
ood > $_
@ -42,7 +42,7 @@ EOF
RUN
NAME=oo ; dc
FILE=../bins/elf/analysis/x86-helloworld-gcc
FILE=bins/elf/analysis/x86-helloworld-gcc
ARGS=-d
CMDS=<<EOF
oo
@ -54,7 +54,7 @@ EOF
RUN
NAME=ood & om
FILE=../bins/elf/analysis/x86-helloworld-gcc
FILE=bins/elf/analysis/x86-helloworld-gcc
ARGS=-d
CMDS=<<EOF
om

View File

@ -1,5 +1,5 @@
NAME=dbg.px0
FILE=../bins/elf/analysis/elf-nx
FILE=bins/elf/analysis/elf-nx
ARGS=-d
CMDS=px0
EXPECT=<<EOF

View File

@ -1,5 +1,5 @@
NAME=Can set db on main
FILE=../bins/elf/analysis/hello-objc-linux
FILE=bins/elf/analysis/hello-objc-linux
ARGS=-d
CMDS=db main;db~1[14];
EXPECT=<<EOF
@ -8,7 +8,7 @@ EOF
RUN
NAME=Code seg is sane
FILE=../bins/elf/analysis/hello-objc-linux
FILE=bins/elf/analysis/hello-objc-linux
ARGS=-d
BROKEN=1
CMDS=iS~LOAD0

View File

@ -47,7 +47,7 @@ EOF
RUN
NAME=ds on jmp reg
FILE=../bins/elf/analysis/x86-jmpeax
FILE=bins/elf/analysis/x86-jmpeax
ARGS=-b 32 -a x86 -d
CMDS=<<EOF
dcu main
@ -60,7 +60,7 @@ EOF
RUN
NAME=ds on calls and jumps
FILE=../bins/elf/analysis/calls_x64
FILE=bins/elf/analysis/calls_x64
ARGS=-a x86 -d
CMDS=<<EOF
dcu main
@ -96,7 +96,7 @@ EOF
RUN
NAME=dso on call 1
FILE=../bins/elf/analysis/calls_x64
FILE=bins/elf/analysis/calls_x64
ARGS=-a x86 -d
CMDS=<<EOF
dcu main
@ -113,7 +113,7 @@ EOF
RUN
NAME=dso on call 2
FILE=../bins/elf/analysis/calls_x64
FILE=bins/elf/analysis/calls_x64
ARGS=-a x86 -d
CMDS=<<EOF
dcu main
@ -130,7 +130,7 @@ EOF
RUN
NAME=dso on call 3
FILE=../bins/elf/analysis/calls_x64
FILE=bins/elf/analysis/calls_x64
ARGS=-a x86 -d
CMDS=<<EOF
dcu main
@ -147,7 +147,7 @@ EOF
RUN
NAME=dso on call 4
FILE=../bins/elf/analysis/calls_x64
FILE=bins/elf/analysis/calls_x64
ARGS=-a x86 -d
CMDS=<<EOF
dcu main
@ -164,7 +164,7 @@ EOF
RUN
NAME=dbg.dsu
FILE=../bins/elf/analysis/calls_x64
FILE=bins/elf/analysis/calls_x64
ARGS=-a x86 -d
CMDS=<<EOF
dcu main
@ -177,7 +177,7 @@ EOF
RUN
NAME=dbg.dsui
FILE=../bins/elf/analysis/calls_x64
FILE=bins/elf/analysis/calls_x64
ARGS=-a x86 -d
CMDS=<<EOF
dcu main
@ -190,7 +190,7 @@ EOF
RUN
NAME=dbg.dsei
FILE=../bins/elf/analysis/calls_x64
FILE=bins/elf/analysis/calls_x64
ARGS=-a x86 -d
BROKEN=1
CMDS=<<EOF
@ -206,7 +206,7 @@ EOF
RUN
NAME=dbg.dss
FILE=../bins/elf/analysis/calls_x64
FILE=bins/elf/analysis/calls_x64
ARGS=-a x86 -d
CMDS=<<EOF
dcu main
@ -219,7 +219,7 @@ EOF
RUN
NAME=dbg.dcu can reach main
FILE=../bins/elf/analysis/calls_x64
FILE=bins/elf/analysis/calls_x64
ARGS=-a x86 -d
CMDS=<<EOF
dcu main

View File

@ -1,5 +1,5 @@
NAME=dbg.stepback
FILE=../bins/elf/analysis/ls-linux-x86_64-zlul
FILE=bins/elf/analysis/ls-linux-x86_64-zlul
ARGS=-d
CMDS=<<EOF
db main
@ -17,7 +17,7 @@ EOF
RUN
NAME=debug stepback from callee
FILE=../bins/elf/analysis/calls_x64
FILE=bins/elf/analysis/calls_x64
ARGS=-d
BROKEN=1
CMDS=<<EOF
@ -36,7 +36,7 @@ EOF
RUN
NAME=debug stepback from caller
FILE=../bins/elf/analysis/calls_x64
FILE=bins/elf/analysis/calls_x64
ARGS=-d
BROKEN=1
CMDS=<<EOF

View File

@ -1,5 +1,5 @@
NAME=dbg.trace.loop.swstep
FILE=../bins/elf/analysis/x64-loop
FILE=bins/elf/analysis/x64-loop
ARGS=-d
CMDS=<<EOF
e scr.color=0

View File

@ -1,5 +1,5 @@
NAME=dbg.trace.loop.hwstep
FILE=../bins/elf/analysis/x64-loop
FILE=bins/elf/analysis/x64-loop
ARGS=-d
CMDS=<<EOF
e scr.color=0

View File

@ -1,5 +1,5 @@
NAME=dbg.trace instructions
FILE=../bins/elf/analysis/x86-simple
FILE=bins/elf/analysis/x86-simple
ARGS=-d
BROKEN=1
CMDS=<<EOF

View File

@ -1,5 +1,5 @@
NAME=rwatchpoint test
FILE=../bins/elf/analysis/x86-helloworld-gcc
FILE=bins/elf/analysis/x86-helloworld-gcc
ARGS=-d
BROKEN=1
CMDS=<<EOF

Some files were not shown because too many files have changed in this diff Show More