llvm-capstone/lldb
David Spickett 2f8e3d55da
[lldb][AArch64][Linux] Add field information for the mte_ctrl register (#71808)
This is a Linux pseudo register provided by the NT_ARM_TAGGED_ADDR_CTRL
register set. It reflects the value passed to prctl
PR_SET_TAGGED_ADDR_CTRL.

https://docs.kernel.org/arch/arm64/memory-tagging-extension.html

The fields are made from the #defines the kernel provides for setting
the value. Its contents are constant so no runtime detection is needed
(once we've decided we have this register in the first place).

The permitted generated tags is technically a bitfield but at this time
we don't have a way to mark a field as preferring hex formatting.

```
(lldb) register read mte_ctrl
mte_ctrl = 0x000000000007fffb
         = (TAGS = 65535, TCF_ASYNC = 0, TCF_SYNC = 1, TAGGED_ADDR_ENABLE = 1)
```

(4 bit tags mean 16 possible tags, 16 bit bitfield)

Testing has been added to TestMTECtrlRegister.py, which needed a more
granular way to check for XML support, so I've added hasXMLSupport that
can be used within a test case instead of skipping whole tests if XML
isn't supported.

Same for the core file tests.
2023-11-10 09:01:22 +00:00
..
bindings Add the ability to get a C++ vtable ValueObject from another ValueObj… (#67599) 2023-10-30 17:46:18 -07:00
cmake [lldb][windows] Allow exporting plugin symbols in LLDB_EXPORT_ALL_SYMBOLS (#71087) 2023-11-02 15:06:16 -07:00
docs [lldb][AArch64][Linux] Add SME2 release notes and usage docs (#70935) 2023-11-08 09:23:02 +00:00
examples [lldb/test] Fix failures following ec456ba9ca 2023-10-26 21:21:54 -07:00
include [lldb] Change interface of StructuredData::Array::GetItemAtIndexAsString (#71613) 2023-11-09 13:35:35 -08:00
packages/Python/lldbsuite [lldb][AArch64][Linux] Add field information for the mte_ctrl register (#71808) 2023-11-10 09:01:22 +00:00
resources [lldb][NFC] Remove copy of debugserver entitlements plist 2023-01-31 12:58:37 -08:00
scripts [lldb] Replace the usage of module imp with module importlib (#70443) 2023-10-31 17:08:55 -03:00
source [lldb][AArch64][Linux] Add field information for the mte_ctrl register (#71808) 2023-11-10 09:01:22 +00:00
test [lldb][AArch64][Linux] Add field information for the mte_ctrl register (#71808) 2023-11-10 09:01:22 +00:00
third_party/Python/module [lldb] Remove use of __future__ in python 2023-08-14 14:14:48 -07:00
tools Improve VSCode DAP logpoint value summary (#71723) 2023-11-08 16:48:55 -08:00
unittests [lldb] Change interface of StructuredData::Array::GetItemAtIndexAsString (#71613) 2023-11-09 13:35:35 -08:00
utils [llvm][tblgen] Add Source Filename for emitSourceFileHeader (#65744) 2023-09-26 13:40:56 +08:00
.clang-format Updated .clang-format rules so bring LLDB in line with LLVM standards. 2016-09-06 17:19:00 +00:00
.clang-tidy
.gitignore
CMakeLists.txt Reland "[CMake] Bumps minimum version to 3.20.0. 2023-05-27 12:51:21 +02:00
CodeOwners.rst [lldb] Remove more references to lldb-vscode (#69696) 2023-10-20 15:08:37 +01:00
LICENSE.TXT Fix typos throughout the license files that somehow I and my reviewers 2019-01-21 09:52:34 +00:00
use_lldb_suite_root.py [lldb] Format more Python files with black (#65979) 2023-09-12 08:46:34 +01:00