aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/FrontendTool/ExecuteCompilerInvocation.cpp
diff options
context:
space:
mode:
authorDavid Spickett <david.spickett@linaro.org>2021-02-19 15:57:29 +0000
committerDavid Spickett <david.spickett@linaro.org>2021-06-24 17:17:10 +0100
commit5d3436200147a999670f754288a03c4ac5a15aeb (patch)
treeda76b9ce3b2c8713516a424623760a42bb7d10b4 /clang/lib/FrontendTool/ExecuteCompilerInvocation.cpp
parenta224c5199b327ed0efcdcd87b6dbf950cf4d9ee1 (diff)
downloadllvm-5d3436200147a999670f754288a03c4ac5a15aeb.zip
llvm-5d3436200147a999670f754288a03c4ac5a15aeb.tar.gz
llvm-5d3436200147a999670f754288a03c4ac5a15aeb.tar.bz2
[lldb][AArch64] Add MTE memory tag reading to lldb
This adds GDB client support for the qMemTags packet which reads memory tags. Following the design which was recently committed to GDB. https://sourceware.org/gdb/current/onlinedocs/gdb/General-Query-Packets.html#General-Query-Packets (look for qMemTags) lldb commands will use the new Process methods GetMemoryTagManager and ReadMemoryTags. The former takes a range and checks that: * The current process architecture has an architecture plugin * That plugin provides a MemoryTagManager * That the range of memory requested lies in a tagged range (it will expand it to granules for you) If all that was true you get a MemoryTagManager you can give to ReadMemoryTags. This two step process is done to allow commands to get the tag manager without having to read tags as well. For example you might just want to remove a logical tag, or error early if a range with tagged addresses is inverted. Note that getting a MemoryTagManager doesn't mean that the process or a specific memory range is tagged. Those are seperate checks. Having a tag manager just means this architecture *could* have a tagging feature enabled. An architecture plugin has been added for AArch64 which will return a MemoryTagManagerAArch64MTE, which was added in a previous patch. Reviewed By: omjavaid Differential Revision: https://reviews.llvm.org/D95602
Diffstat (limited to 'clang/lib/FrontendTool/ExecuteCompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions