From 96e966eb3d5cfd83015e1c6519825a59d2b93d72 Mon Sep 17 00:00:00 2001 From: Florian Mayer Date: Thu, 13 Aug 2020 09:41:29 +0100 Subject: Set warning for dex pc not in map. This way, the profilers will know they have to reparse maps. Bug: 163130539 Test: Verified updated unit tests pass. Change-Id: I88a801ffdda12811eab5e4833dcf472f2d75c09a --- libunwindstack/include/unwindstack/Error.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'libunwindstack/include/unwindstack/Error.h') diff --git a/libunwindstack/include/unwindstack/Error.h b/libunwindstack/include/unwindstack/Error.h index 72ec4547f..66fefe76d 100644 --- a/libunwindstack/include/unwindstack/Error.h +++ b/libunwindstack/include/unwindstack/Error.h @@ -21,6 +21,13 @@ namespace unwindstack { +// A bit map of warnings, multiple warnings can be set at the same time. +enum WarningCode : uint64_t { + WARNING_NONE = 0, + WARNING_DEX_PC_NOT_IN_MAP = 0x1, // A dex pc was found, but it doesn't exist + // in any valid map. +}; + enum ErrorCode : uint8_t { ERROR_NONE, // No error. ERROR_MEMORY_INVALID, // Memory read failed. -- cgit v1.2.3