Skip to content

Commit

Permalink
repl: Fix await with no pause (#111)
Browse files Browse the repository at this point in the history
So an application spawned via `-W` will honor the `--no-pause` flag.
  • Loading branch information
pachoo committed Aug 2, 2022
1 parent a2be20d commit 61022ea
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions frida_tools/repl.py
Original file line number Diff line number Diff line change
Expand Up @@ -166,15 +166,16 @@ 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:
command = " ".join(self._spawned_argv) if self._spawned_argv is not None else 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 61022ea

Please sign in to comment.