1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-14 09:24:57 +00:00

Utilities: Report correct memory addresses for pmap

While I think negative memory might be an interesting concept to
investigate I don't think we're quite ready for it yet:

7ca71000        8192 r-xs-  libcrypt.so: .text
7ca73000        4096 r----  libcrypt.so: .relro
7ca74000        4096 rw---  libcrypt.so: .data
-6d391000       45056 r-xs-  libttf.so: .text
-6d385000        4096 r----  libttf.so: .relro
-6d384000        4096 rw---  libttf.so: .data
This commit is contained in:
Gunnar Beutner 2021-06-02 10:54:13 +02:00 committed by Linus Groh
parent de8d081ca4
commit 2df6c70b07

View file

@ -60,7 +60,7 @@ int main(int argc, char** argv)
for (auto& value : sorted_regions) {
auto& map = value.as_object();
auto address = map.get("address").to_int();
auto address = map.get("address").to_uint();
auto size = map.get("size").to_string();
auto access = String::formatted("{}{}{}{}{}",