Page MenuHomePhabricator

[lldb] Add --all option to "memory region"
Needs ReviewPublic

Authored by DavidSpickett on Oct 14 2021, 4:50 AM.



This adds an option to the memory region command
to print all regions at once. Like you can do by
starting at address 0 and repeating the command

memory region [-a] [<address-expression>]

(lldb) memory region --all
[0x0000000000000000-0x0000000000400000) ---
[0x0000000000400000-0x0000000000401000) r-x <...>/a.out PT_LOAD[0]
[0x0000fffffffdf000-0x0001000000000000) rw- [stack]
[0x0001000000000000-0xffffffffffffffff) ---

The output matches exactly what you'd get from
repeating the command. Including that it shows
unmapped areas between the mapped regions.

(this is why Process GetMemoryRegions is not
used, that skips unmapped areas)

Diff Detail

Event Timeline

DavidSpickett created this revision.Oct 14 2021, 4:50 AM
DavidSpickett requested review of this revision.Oct 14 2021, 4:50 AM
Herald added a project: Restricted Project. · View Herald TranscriptOct 14 2021, 4:50 AM