Skip guest register getting on arm32.
Currently, there is no support for a guest architecture when running
in an arm 32 bit process. So always return false in that case instead
of spamming the log with useless messages.
Bug: 384944467
Test: debuggerd tests pass with no extraneous error messages.
Change-Id: I8152f1e76031e8b765c4c594b0bbc6800ab60c9e
diff --git a/debuggerd/crash_dump.cpp b/debuggerd/crash_dump.cpp
index 7d3830c..92d81b3 100644
--- a/debuggerd/crash_dump.cpp
+++ b/debuggerd/crash_dump.cpp
@@ -451,10 +451,8 @@
return false;
}
#elif defined(__arm__)
- if (ptrace(PTRACE_GET_THREAD_AREA, tid, nullptr, &base) == 0) {
- PLOG(ERROR) << "failed to get thread area for thread " << tid;
- return false;
- }
+ // Arm doesn't support any guest architectures yet.
+ return false;
#elif defined(__i386__)
struct user_regs_struct regs;
struct iovec pt_iov = {.iov_base = ®s, .iov_len = sizeof(regs)};