Author: Michał Górny Date: 2021-09-20T10:41:38+02:00 New Revision: f6e0edc23e6199bbb5fb4ef3b018b49a5b303183
URL: https://github.com/llvm/llvm-project/commit/f6e0edc23e6199bbb5fb4ef3b018b49a5b303183 DIFF: https://github.com/llvm/llvm-project/commit/f6e0edc23e6199bbb5fb4ef3b018b49a5b303183.diff LOG: [lldb] [gdb-remote] Recognize aarch64v type from gdbserver Differential Revision: https://reviews.llvm.org/D109899 Added: Modified: lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp lldb/test/API/functionalities/gdb_remote_client/TestGDBServerTargetXML.py Removed: ################################################################################ diff --git a/lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp b/lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp index 79c54bce13372..7dd1f340cb331 100644 --- a/lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp +++ b/lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp @@ -4524,6 +4524,9 @@ bool ParseRegisters(XMLNode feature_node, GdbServerTargetInfo &target_info, } else if (gdb_type == "i387_ext" || gdb_type == "float") { reg_info.format = eFormatFloat; reg_info.encoding = eEncodingIEEE754; + } else if (gdb_type == "aarch64v") { + reg_info.format = eFormatVectorOfUInt8; + reg_info.encoding = eEncodingVector; } } diff --git a/lldb/test/API/functionalities/gdb_remote_client/TestGDBServerTargetXML.py b/lldb/test/API/functionalities/gdb_remote_client/TestGDBServerTargetXML.py index 5d307fc1e3d4c..225b16d8946e1 100644 --- a/lldb/test/API/functionalities/gdb_remote_client/TestGDBServerTargetXML.py +++ b/lldb/test/API/functionalities/gdb_remote_client/TestGDBServerTargetXML.py @@ -423,3 +423,9 @@ def haltReason(self): ["x30 = 0x4847464544434241"]) self.match("register read flags", ["cpsr = 0x74737271"]) + + # test vector registers + self.match("register read v0", + ["v0 = {0x81 0x82 0x83 0x84 0x85 0x86 0x87 0x88 0x89 0x8a 0x8b 0x8c 0x8d 0x8e 0x8f 0x90}"]) + self.match("register read v31", + ["v31 = {0xa1 0xa2 0xa3 0xa4 0xa5 0xa6 0xa7 0xa8 0xa9 0xaa 0xab 0xac 0xad 0xae 0xaf 0xb0}"]) _______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits