[all-commits] [llvm/llvm-project] 8e648f: [lldb] Add --all option to "memory region"
David Spickett via All-commits
all-commits at lists.llvm.org
Wed May 18 03:33:55 PDT 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 8e648f195c3d57e573fdd8023edcfd80e0516c61
https://github.com/llvm/llvm-project/commit/8e648f195c3d57e573fdd8023edcfd80e0516c61
Author: David Spickett <david.spickett at linaro.org>
Date: 2022-05-18 (Wed, 18 May 2022)
Changed paths:
M lldb/source/Commands/CommandObjectMemory.cpp
M lldb/source/Commands/Options.td
M lldb/test/API/functionalities/memory-region/TestMemoryRegion.py
M lldb/test/API/linux/aarch64/tagged_memory_region/TestAArch64LinuxTaggedMemoryRegion.py
M llvm/docs/ReleaseNotes.rst
Log Message:
-----------
[lldb] Add --all option to "memory region"
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
manually.
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)
Help text has been updated to show that you can have
an address or --all but not both.
Reviewed By: JDevlieghere
Differential Revision: https://reviews.llvm.org/D111791
More information about the All-commits
mailing list