llvm-project/lldb/source/Plugins/Process/gdb-remote
Muhammad Omair Javaid 78cb4562fa Make offset field optional in RegisterInfo packet for Arm64
This patch carries forward our aim to remove offset field from qRegisterInfo
packets and XML register description. I have created a new function which
returns if offset fields are dynamic meaning client can calculate offset on
its own based on register number sequence and register size. For now this
function only returns true for NativeRegisterContextLinux_arm64 but we can
test this for other architectures and make it standard later.

As a consequence we do not send offset field from lldb-server (arm64 for now)
while other stubs dont have an offset field so it wont effect them for now.
On the client side we have replaced previous offset calculation algorithm
with a new scheme, where we sort all primary registers in increasing
order of remote regnum and then calculate offset incrementally.

This committ also includes a test to verify all of above functionality
on Arm64.

Reviewed By: labath

Differential Revision: https://reviews.llvm.org/D91241
2020-12-02 03:19:43 +05:00
..
CMakeLists.txt [lldb] Allows customizing libxml2 for darwin 2020-05-20 12:27:08 -07:00
GDBRemoteClientBase.cpp Make llvm::StringRef to std::string conversions explicit. 2020-01-28 23:25:25 +01:00
GDBRemoteClientBase.h [lldb] Update header guards to be consistent and compliant with LLVM (NFC) 2020-02-17 23:15:40 -08:00
GDBRemoteCommunication.cpp [lldb/ipv6] Support running lldb tests in an ipv6-only environment. 2020-09-30 11:08:41 -07:00
GDBRemoteCommunication.h [lldb] NFC remove DISALLOW_COPY_AND_ASSIGN 2020-06-02 13:23:53 -04:00
GDBRemoteCommunicationClient.cpp [lldb][AArch64/Linux] Show memory tagged memory regions 2020-11-20 11:21:59 +00:00
GDBRemoteCommunicationClient.h [intel-pt][trace] Implement a "get supported trace type" packet 2020-11-11 10:35:58 -08:00
GDBRemoteCommunicationHistory.cpp [lldb][NFC] Fix all formatting errors in .cpp file headers 2020-01-24 08:52:55 +01:00
GDBRemoteCommunicationHistory.h [lldb] Update header guards to be consistent and compliant with LLVM (NFC) 2020-02-17 23:15:40 -08:00
GDBRemoteCommunicationReplayServer.cpp [lldb/Reproducers] Move connection logic into replay server (NFC) 2020-05-19 10:55:35 -07:00
GDBRemoteCommunicationReplayServer.h [lldb] NFC remove DISALLOW_COPY_AND_ASSIGN 2020-06-02 13:23:53 -04:00
GDBRemoteCommunicationServer.cpp [lldb/Utility] Introduce UnimplementedError 2020-10-12 13:46:17 +02:00
GDBRemoteCommunicationServer.h [lldb] Error when there are no ports to launch a gdbserver on 2020-11-30 10:19:14 +00:00
GDBRemoteCommunicationServerCommon.cpp [lldb] Initial version of FreeBSD remote process plugin 2020-10-08 16:03:00 +02:00
GDBRemoteCommunicationServerCommon.h [lldb] Update header guards to be consistent and compliant with LLVM (NFC) 2020-02-17 23:15:40 -08:00
GDBRemoteCommunicationServerLLGS.cpp Make offset field optional in RegisterInfo packet for Arm64 2020-12-02 03:19:43 +05:00
GDBRemoteCommunicationServerLLGS.h [intel-pt][trace] Implement a "get supported trace type" packet 2020-11-11 10:35:58 -08:00
GDBRemoteCommunicationServerPlatform.cpp [lldb] Use llvm::Optional for port in LaunchGDBServer 2020-11-30 11:20:39 +00:00
GDBRemoteCommunicationServerPlatform.h [lldb] Use llvm::Optional for port in LaunchGDBServer 2020-11-30 11:20:39 +00:00
GDBRemoteRegisterContext.cpp [lldb][NFC] Fix all formatting errors in .cpp file headers 2020-01-24 08:52:55 +01:00
GDBRemoteRegisterContext.h [lldb] NFC remove DISALLOW_COPY_AND_ASSIGN 2020-06-02 13:23:53 -04:00
ProcessGDBRemote.cpp Make offset field optional in RegisterInfo packet for Arm64 2020-12-02 03:19:43 +05:00
ProcessGDBRemote.h Make offset field optional in RegisterInfo packet for Arm64 2020-12-02 03:19:43 +05:00
ProcessGDBRemoteLog.cpp [lldb][NFC] Fix all formatting errors in .cpp file headers 2020-01-24 08:52:55 +01:00
ProcessGDBRemoteLog.h [lldb] Update header guards to be consistent and compliant with LLVM (NFC) 2020-02-17 23:15:40 -08:00
ProcessGDBRemoteProperties.td [lldb/gdb-remote] Change default value of use-libraries-svr4 to true 2020-05-14 12:17:37 +02:00
ThreadGDBRemote.cpp [lldb] Return Unwinder& from Thread::GetUnwinder 2020-03-09 14:13:22 +01:00
ThreadGDBRemote.h [lldb] Update header guards to be consistent and compliant with LLVM (NFC) 2020-02-17 23:15:40 -08:00