* Do not display 'Cannot attach' when pid = -1
This commit is contained in:
parent
07790d9932
commit
3a5ddb3346
|
@ -78,7 +78,8 @@ R_API int r_debug_attach(RDebug *dbg, int pid) {
|
|||
//dbg->pid = pid;
|
||||
//dbg->tid = ret;
|
||||
r_debug_select (dbg, pid, ret); //dbg->pid, dbg->tid);
|
||||
} else eprintf ("Cannot attach to this pid\n");
|
||||
} else if (pid != -1)
|
||||
eprintf ("Cannot attach to this pid\n");
|
||||
} else eprintf ("dbg->attach = NULL\n");
|
||||
return ret;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue