dcf runs dcs vfork now. Add missing syscall for linux-arm

This commit is contained in:
pancake 2014-06-12 15:33:21 +02:00
parent cf48098782
commit 478583fd17
3 changed files with 8 additions and 2 deletions

View File

@ -1138,8 +1138,11 @@ static int cmd_debug(void *data, const char *input) {
eprintf ("TODO: dca\n");
break;
case 'f':
eprintf ("[+] Running 'dcs fork' behind the scenes...\n");
r_core_cmd0 (core, "dcs fork");
eprintf ("[+] Running 'dcs vfork' behind the scenes...\n");
// we should stop in fork and vfork syscalls
//TODO: multiple syscalls not handled yet
// r_core_cmd0 (core, "dcs vfork fork");
r_core_cmd0 (core, "dcs vfork");
break;
case 'c':
r_reg_arena_swap (core->dbg->reg, R_TRUE);
@ -1169,6 +1172,7 @@ static int cmd_debug(void *data, const char *input) {
checkbpcallback (core);
break;
case 's':
// TODO : handle more than one stopping syscall
if (input[2]==' ') {
sig = r_num_math (core->num, input+3);
if (sig <= 0) {

View File

@ -35,6 +35,7 @@ mprotect=0x900000,125,3,
rt_sigaction=0x900000,174,3,
rt_sigprocmask=0x900000,175,3,
sysctl=0x900000,149,1,
vfork=0x900000,1071,0,
mmap2=0x900000,192,6,
fstat64=0x900000,197,2,
fcntl64=0x900000,221,3,

View File

@ -31,6 +31,7 @@ mprotect=0x80,125,3,
rt_sigaction=0x80,174,3,
rt_sigprocmask=0x80,175,3,
sysctl=0x80,149,1,
vfork=0x80,190,0,
mmap2=0x80,192,6,
fstat64=0x80,197,2,
fcntl64=0x80,221,3,