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

Commit 0473a1ea authored by Christopher Ferris's avatar Christopher Ferris Committed by Android Git Automerger
Browse files

am b6deb331: Merge "New property that determines when to wait for gdb."

* commit 'b6deb331':
  New property that determines when to wait for gdb.
parents 32933ff5 b6deb331
Loading
Loading
Loading
Loading
+1 −4
Original line number Diff line number Diff line
@@ -236,10 +236,7 @@ static int read_request(int fd, debugger_request_t* out_request) {

static bool should_attach_gdb(debugger_request_t* request) {
  if (request->action == DEBUGGER_ACTION_CRASH) {
    char value[PROPERTY_VALUE_MAX];
    property_get("debug.db.uid", value, "-1");
    int debug_uid = atoi(value);
    return debug_uid >= 0 && request->uid <= (uid_t)debug_uid;
    return property_get_bool("debug.debuggerd.wait_for_gdb", false);
  }
  return false;
}