Skip to content

Commit 81fb42a

Browse files
committed
Fix dx restore ##debug
1 parent 02243d2 commit 81fb42a

3 files changed

Lines changed: 7 additions & 7 deletions

File tree

libr/core/cmd_debug.inc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6446,7 +6446,7 @@ static int cmd_debug(void *data, const char *input) {
64466446
}
64476447
int bytes_len = r_hex_str2bin (hexpairs, exec_buf);
64486448
if (bytes_len > 0) {
6449-
bool restore = true;
6449+
bool restore = is_dxr;
64506450
bool ignore_stack = is_dxrs;
64516451
const int exec_len = bytes_len + 1;
64526452
exec_buf[exec_len - 1] = 0xcc;

test/db/archos/linux-x86_64/cmd_di_onsignals

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -711,7 +711,7 @@ RUN
711711

712712
NAME=di on SIGXFSZ
713713
BROKEN=1
714-
FILE=1
714+
FILE=bins/elf/signals/signal-input
715715
ARGS=-e cfg.fortunes=false -e dbg.args=25 -d
716716
CMDS=<<EOF
717717
dc

test/db/archos/linux-x86_64/dbg_drt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
11
NAME=drt
2-
BROKEN=1
32
FILE=bins/elf/sse2-add
43
ARGS=-d
54
CMDS=<<EOF
6-
# pri register bank is unexpected here
75
drt
86
EOF
97
EXPECT=<<EOF
108
gpr
119
drx
1210
fpu
13-
mmx
14-
xmm
15-
ymm
11+
vec64
12+
vec128
13+
vec256
14+
vec512
1615
flg
1716
seg
17+
pri
1818
EOF
1919
RUN
2020

0 commit comments

Comments
 (0)