Combine all dbg_trace# tests into 1 testfile (#3840)

This commit is contained in:
Khairul Azhar Kasmiran 2023-09-11 12:29:48 +08:00 committed by GitHub
parent 33d33777d0
commit 5fa69e480c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 35 additions and 33 deletions

View file

@ -16,6 +16,41 @@ rip = 0x00000000004004ed
EOF
RUN
NAME=dbg.trace.loop.hwstep
FILE=bins/elf/analysis/x64-loop
ARGS=-d
CMDS=<<EOF
e scr.color=0
e dbg.swstep=false
db @ sym.called_in_loop
dbc dr PC @ sym.called_in_loop
dbte @ sym.called_in_loop
dc
EOF
EXPECT=<<EOF
rip = 0x00000000004004ed
rip = 0x00000000004004ed
rip = 0x00000000004004ed
EOF
RUN
NAME=dbg.trace instructions
FILE=bins/elf/analysis/x86-simple
ARGS=-d
BROKEN=1
CMDS=<<EOF
ds
sr eip
e dbg.trace = true
2ds
"pi 1 @ `atd~:0[3]`;pi 1 @ `atd~:1[3]`"
EOF
EXPECT=<<EOF
pop ebx
mov eax, 1
EOF
RUN
NAME=missing main stack frame fix (#3806)
FILE=bins/elf/analysis/calls_x64
ARGS=-d

View file

@ -1,17 +0,0 @@
NAME=dbg.trace.loop.hwstep
FILE=bins/elf/analysis/x64-loop
ARGS=-d
CMDS=<<EOF
e scr.color=0
e dbg.swstep=false
db @ sym.called_in_loop
dbc dr PC @ sym.called_in_loop
dbte @ sym.called_in_loop
dc
EOF
EXPECT=<<EOF
rip = 0x00000000004004ed
rip = 0x00000000004004ed
rip = 0x00000000004004ed
EOF
RUN

View file

@ -1,16 +0,0 @@
NAME=dbg.trace instructions
FILE=bins/elf/analysis/x86-simple
ARGS=-d
BROKEN=1
CMDS=<<EOF
ds
sr eip
e dbg.trace = true
2ds
"pi 1 @ `atd~:0[3]`;pi 1 @ `atd~:1[3]`"
EOF
EXPECT=<<EOF
pop ebx
mov eax, 1
EOF
RUN