mirror of
https://github.com/radareorg/radare2.git
synced 2025-01-22 05:37:06 +00:00
Fix iOS debugger attach
This commit is contained in:
parent
20c8b7a815
commit
afb5c93e49
@ -342,6 +342,7 @@ static int fork_and_ptraceme(RIO *io, int bits, const char *cmd) {
|
||||
r_str_concatf (strdup (cmd), " %s", io->args) :
|
||||
strdup (cmd);
|
||||
|
||||
trace_me ();
|
||||
argv = r_str_argv (_cmd, NULL);
|
||||
if (!argv) {
|
||||
free (_cmd);
|
||||
@ -352,7 +353,6 @@ static int fork_and_ptraceme(RIO *io, int bits, const char *cmd) {
|
||||
for (i = 3; i < 1024; i++) {
|
||||
(void)close (i);
|
||||
}
|
||||
trace_me ();
|
||||
execvp (argv[0], argv);
|
||||
} else {
|
||||
eprintf ("Invalid execvp\n");
|
||||
|
Loading…
x
Reference in New Issue
Block a user