[Lldb-commits] [PATCH] D112825: [lldb] Add MemoryTagMap class
David Spickett via Phabricator via lldb-commits
lldb-commits at lists.llvm.org
Fri Oct 29 08:39:01 PDT 2021
DavidSpickett created this revision.
Herald added a subscriber: mgorny.
DavidSpickett requested review of this revision.
Herald added a project: LLDB.
Herald added a subscriber: lldb-commits.
The tag map holds a sparse set of memory tags and allows
you to query ranges for tags.
Granules that do not have tags will be set to llvm::None.
to keep the ordering intact. If there are no tags for the
requested range we'll just return an empty result so that
callers don't need to check that all values are llvm::None.
This will be combined with MemoryTagManager's MakeTaggedRanges:
- MakeTaggedRanges
- Read from all those ranges
- Insert the results into the tag map
- Give the tag map to whatever needs to print tags
Which in this case will be "memory read"/DumpDataExtractor.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D112825
Files:
lldb/include/lldb/Utility/MemoryTagMap.h
lldb/source/Utility/CMakeLists.txt
lldb/source/Utility/MemoryTagMap.cpp
lldb/unittests/Utility/CMakeLists.txt
lldb/unittests/Utility/MemoryTagMapTest.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D112825.383373.patch
Type: text/x-patch
Size: 10158 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20211029/51cd8f0e/attachment.bin>
More information about the lldb-commits
mailing list