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

Commit e85e40b0 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

am: c57f59e1

Change-Id: I58cedbe90e41150c7b950389ebf70bef81b9afcc
parents b99e669f c57f59e1
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);
  }
  }