more detailed see this
In short, I want to skip syscall when recording program, but it seems that the program would always stop after ths syscall.
Hope someone can help me. Thanks.
below is running results:
$ git rev-parse origin/master
093d583000f9f78ec1a4d8643cb59e465a0ede7c
$ git diff origin/master
diff --git a/libr/main/radare2.c b/libr/main/radare2.c
index 2bc1cb68f9..15ce049d9c 100644
--- a/libr/main/radare2.c
+++ b/libr/main/radare2.c
@@ -1706,7 +1706,7 @@ R_API int r_main_radare2(int argc, const char **argv) {
debug = r_config_get_b (r->config, "cfg.debug");
if (ret != -1 && r_cons_is_interactive ()) {
char *question;
- bool no_question_debug = ret & 1;
+ bool no_question_debug = 1;
$ r2 -NAd -c "db main;dts+;db;dc;dr rip;pd-- 4" /mnt/ubuntu/home/czg/csapp3e/asm/prog
...
0x00401060 - 0x00401061 1 --x sw break enabled valid cmd="" cond="" name="main" module="/mnt/ubuntu/home/czg/csapp3e/asm/prog"
0x7fbe6445b08b
0x7fbe6445b07e 6690 nop
; CALL XREF from map._usr_lib_ld_linux_x86_64.so.2.r_x @ +0x198ae(x)
; CALL XREFS from rip @ +0x5238(x), +0x5252(x)
0x7fbe6445b080 f30f1efa endbr64
0x7fbe6445b084 b80c000000 mov eax, 0xc ; 12
0x7fbe6445b089 0f05 syscall
0x7fbe6445b08b 488905e64101. mov qword [0x7fbe6446f278], rax ; [0x7fbe6446f278:8]=0
0x7fbe6445b092 4839f8 cmp rax, rdi
,=< 0x7fbe6445b095 7209 jb 0x7fbe6445b0a0
| 0x7fbe6445b097 31c0 xor eax, eax
[0x7fdcd2e4908b]> ds
[0x7fdcd2e4908b]> dr rip
0x7fdcd2e49092
Best regards