summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2013-01-03 13:39:57 -0800
committerElliott Hughes <enh@google.com>2013-01-03 13:39:57 -0800
commitd1420be6133fc5ba71d59315936fb85239ea78b1 (patch)
tree4e2a706b086507efb2228b700485461de69f3373 /include
parent38219ee6116943269b0501a1a0210c76e2ba69c3 (diff)
downloadsystem_core-d1420be6133fc5ba71d59315936fb85239ea78b1.zip
system_core-d1420be6133fc5ba71d59315936fb85239ea78b1.tar.gz
system_core-d1420be6133fc5ba71d59315936fb85239ea78b1.tar.bz2
Include page protections in the debuggerd map output.
Bug: 7941716 Change-Id: I3bf475425c628c06f7799340c8a6132aab741742
Diffstat (limited to 'include')
-rw-r--r--include/corkscrew/map_info.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/include/corkscrew/map_info.h b/include/corkscrew/map_info.h
index ea1d35f..c9b241d 100644
--- a/include/corkscrew/map_info.h
+++ b/include/corkscrew/map_info.h
@@ -32,6 +32,7 @@ typedef struct map_info {
uintptr_t start;
uintptr_t end;
bool is_readable;
+ bool is_writable;
bool is_executable;
void* data; // arbitrary data associated with the map by the user, initially NULL
char name[];
@@ -46,9 +47,10 @@ void free_map_info_list(map_info_t* milist);
/* Finds the memory map that contains the specified address. */
const map_info_t* find_map_info(const map_info_t* milist, uintptr_t addr);
-/* Returns true if the addr is in an readable map. */
+/* Returns true if the addr is in a readable map. */
bool is_readable_map(const map_info_t* milist, uintptr_t addr);
-
+/* Returns true if the addr is in a writable map. */
+bool is_writable_map(const map_info_t* milist, uintptr_t addr);
/* Returns true if the addr is in an executable map. */
bool is_executable_map(const map_info_t* milist, uintptr_t addr);