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

Commit d1067b3f authored by Christopher Ferris's avatar Christopher Ferris Committed by Gerrit Code Review
Browse files

Merge "Avoid crashing on bad architecture value." into main

parents 72d88821 c7cc571f
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -28,7 +28,6 @@
#include <android-base/stringprintf.h>
#include <android-base/strings.h>
#include <android-base/unique_fd.h>
#include <async_safe/log.h>
#include <bionic/macros.h>

#include "tombstone.pb.h"
@@ -138,7 +137,8 @@ static void print_thread_registers(CallbackType callback, const Tombstone& tombs
      break;

    default:
      async_safe_fatal("unknown architecture");
      CBL("Unknown architecture %d printing thread registers", tombstone.arch());
      return;
  }

  for (const auto& reg : thread.registers()) {