diff options
Diffstat (limited to 'DevTools/UserspaceEmulator/MmapRegion.h')
-rw-r--r-- | DevTools/UserspaceEmulator/MmapRegion.h | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/DevTools/UserspaceEmulator/MmapRegion.h b/DevTools/UserspaceEmulator/MmapRegion.h index 1e91fcbaac..68c1eb864e 100644 --- a/DevTools/UserspaceEmulator/MmapRegion.h +++ b/DevTools/UserspaceEmulator/MmapRegion.h @@ -56,12 +56,7 @@ public: bool is_malloc_block() const { return m_malloc; } void set_malloc(bool b) { m_malloc = b; } - void set_prot(int prot) - { - set_readable(prot & PROT_READ); - set_writable(prot & PROT_WRITE); - set_executable(prot & PROT_EXEC); - } + void set_prot(int prot); MallocRegionMetadata* malloc_metadata() { return m_malloc_metadata; } void set_malloc_metadata(Badge<MallocTracer>, NonnullOwnPtr<MallocRegionMetadata> metadata) { m_malloc_metadata = move(metadata); } |