Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c57f59e1 authored by Josh Gao's avatar Josh Gao Committed by android-build-merger
Browse files

debuggerd: fix `debuggerd <pid>` am: 1e4afb52 am: cc1110f1

am: f1286729

Change-Id: I578d36b4938e347699870c802dc9322f1a36f916
parents 98175e5e f1286729
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -71,7 +71,7 @@ int main(int argc, char* argv[]) {
  std::thread redirect_thread = spawn_redirect_thread(std::move(piperead));
  std::thread redirect_thread = spawn_redirect_thread(std::move(piperead));
  bool backtrace = argc == 3;
  bool backtrace = argc == 3;
  if (!debuggerd_trigger_dump(pid, std::move(pipewrite),
  if (!debuggerd_trigger_dump(pid, std::move(pipewrite),
                              backtrace ? kDebuggerdBacktrace : kDebuggerdBacktrace, 0)) {
                              backtrace ? kDebuggerdBacktrace : kDebuggerdTombstone, 0)) {
    redirect_thread.join();
    redirect_thread.join();
    errx(1, "failed to dump process %d", pid);
    errx(1, "failed to dump process %d", pid);
  }
  }