From 3a9a989484451f2345d87901056df63dcf9796b5 Mon Sep 17 00:00:00 2001 From: Josh Gao Date: Thu, 16 May 2024 13:52:17 -0700 Subject: [PATCH] crasher: hide xom from help when unavailable Test: m crasher Change-Id: Iaf25dd650eb5cf6e8b0933f574b3d4a208b74da9 --- debuggerd/crasher/crasher.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/debuggerd/crasher/crasher.cpp b/debuggerd/crasher/crasher.cpp index 3b52776d7..05143ed05 100644 --- a/debuggerd/crasher/crasher.cpp +++ b/debuggerd/crasher/crasher.cpp @@ -202,7 +202,9 @@ static int usage() { fprintf(stderr, " fdsan_file close a file descriptor that's owned by a FILE*\n"); fprintf(stderr, " fdsan_dir close a file descriptor that's owned by a DIR*\n"); fprintf(stderr, " seccomp fail a seccomp check\n"); +#if defined(__LP64__) fprintf(stderr, " xom read execute-only memory\n"); +#endif fprintf(stderr, "\n"); fprintf(stderr, " LOG_ALWAYS_FATAL call liblog LOG_ALWAYS_FATAL\n"); fprintf(stderr, " LOG_ALWAYS_FATAL_IF call liblog LOG_ALWAYS_FATAL_IF\n");