summaryrefslogtreecommitdiff
path: root/Kernel
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2019-08-12 19:37:28 +0200
committerAndreas Kling <awesomekling@gmail.com>2019-08-12 19:37:28 +0200
commite8eadd19a5ef589d7d8eb73aa89915bc9643b40c (patch)
tree024fee1c4b350ab33ad1579715ba5865c7d4351f /Kernel
parent7d6689055fbed308324a80769c334a649edcab56 (diff)
downloadserenity-e8eadd19a5ef589d7d8eb73aa89915bc9643b40c.zip
Kernel: Show region access bits (R/W/X) in crash dump region lists
It's pretty helpful to be able to see the various access bits for each region in a crash dump. :^)
Diffstat (limited to 'Kernel')
-rw-r--r--Kernel/Process.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/Kernel/Process.cpp b/Kernel/Process.cpp
index 82bb9bfe5b..3b5cfb5836 100644
--- a/Kernel/Process.cpp
+++ b/Kernel/Process.cpp
@@ -669,12 +669,15 @@ Process::~Process()
void Process::dump_regions()
{
kprintf("Process %s(%u) regions:\n", name().characters(), pid());
- kprintf("BEGIN END SIZE NAME\n");
+ kprintf("BEGIN END SIZE ACCESS NAME\n");
for (auto& region : m_regions) {
- kprintf("%x -- %x %x %s\n",
+ kprintf("%x -- %x %x %c%c%c %s\n",
region.vaddr().get(),
region.vaddr().offset(region.size() - 1).get(),
region.size(),
+ region.is_readable() ? 'R' : ' ',
+ region.is_writable() ? 'W' : ' ',
+ region.is_executable() ? 'X' : ' ',
region.name().characters());
}
}