OSDN Git Service

[LLDB] Add per-thread register infos shared pointer in gdb-remote
authorMuhammad Omair Javaid <omair.javaid@linaro.org>
Fri, 15 Jan 2021 10:33:31 +0000 (15:33 +0500)
committerMuhammad Omair Javaid <omair.javaid@linaro.org>
Fri, 15 Jan 2021 11:11:17 +0000 (16:11 +0500)
commit4fd77668b2cc215f0605fe20bb989b90b29f4346
tree4137dcec687951f4ceecf5ce12de0a990e7e9c78
parent9cc221b99becf20397d935981eeb48cba5be7faf
[LLDB] Add per-thread register infos shared pointer in gdb-remote

In gdb-remote process we have register infos defind as a refernce object of
GDBRemoteDynamicRegisterInfo class. In past register infos have remained
constant througout the life time of a process.

This has changed after AArch64 SVE support where register infos will have
per-thread configuration. SVE registers will have per-thread size and can
be updated while running. This patch aims to build up for that support by
changing GDBRemoteDynamicRegisterInfo reference to a shared pointer deinfed
per-thread.

Reviewed By: labath

Differential Revision: https://reviews.llvm.org/D82857
lldb/source/Plugins/Process/Utility/DynamicRegisterInfo.cpp
lldb/source/Plugins/Process/Utility/DynamicRegisterInfo.h
lldb/source/Plugins/Process/gdb-remote/GDBRemoteRegisterContext.cpp
lldb/source/Plugins/Process/gdb-remote/GDBRemoteRegisterContext.h
lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp
lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.h
lldb/source/Plugins/Process/gdb-remote/ThreadGDBRemote.cpp
lldb/source/Plugins/Process/gdb-remote/ThreadGDBRemote.h