mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-25 09:00:22 +00:00
strace: Teach mmap() pretty-printer about more MAP_FOO flags
This commit is contained in:
parent
472401a51e
commit
248ff8e971
Notes:
sideshowbarker
2024-07-18 01:39:51 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/248ff8e971c
1 changed files with 8 additions and 0 deletions
|
@ -581,6 +581,14 @@ struct Formatter<MmapFlags> : StandardFormatter {
|
|||
active_flags.append("MAP_PRIVATE");
|
||||
if (flags & MAP_FIXED)
|
||||
active_flags.append("MAP_FIXED");
|
||||
if (flags & MAP_RANDOMIZED)
|
||||
active_flags.append("MAP_RANDOMIZED");
|
||||
if (flags & MAP_STACK)
|
||||
active_flags.append("MAP_STACK");
|
||||
if (flags & MAP_NORESERVE)
|
||||
active_flags.append("MAP_NORESERVE");
|
||||
if (flags & MAP_PURGEABLE)
|
||||
active_flags.append("MAP_PURGEABLE");
|
||||
builder.join(" | ", active_flags);
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue