Combine all dbg_trace# tests into 1 testfile (#3840)
This commit is contained in:
parent
33d33777d0
commit
5fa69e480c
3 changed files with 35 additions and 33 deletions
|
|
@ -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
|
||||
|
|
@ -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
|
||||
|
|
@ -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
|
||||
Loading…
Reference in a new issue