Skip to content

Commit

Permalink
Fix await with no pause
Browse files Browse the repository at this point in the history
Updated start logic so an application spawned via '-W'/'--await' will honor the '--no-pause' flag.
  • Loading branch information
pachoo committed Aug 1, 2022
1 parent 05f5661 commit cf4822c
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions frida_tools/repl.py
Original file line number Diff line number Diff line change
Expand Up @@ -166,15 +166,19 @@ def _start(self):
self._exit(1)
return

if self._spawned_argv is not None:
if self._spawned_argv is not None or self._selected_spawn is not None:
if self._spawned_argv is not None:
command = "{command}".format(command=" ".join(self._spawned_argv))
else:
command = self._selected_spawn.identifier
if self._no_pause:
self._update_status(
"Spawned `{command}`. Resuming main thread!".format(command=" ".join(self._spawned_argv)))
"Spawned `{command}`. Resuming main thread!".format(command=command))
self._do_magic("resume")
else:
self._update_status(
"Spawned `{command}`. Use %resume to let the main thread start executing!".format(
command=" ".join(self._spawned_argv)))
command=command))
else:
self._clear_status()
self._ready.set()
Expand Down

0 comments on commit cf4822c

Please sign in to comment.