[lldb] Support querying registers via generic names without alt_names
authorMichał Górny <mgorny@moritz.systems>
Mon, 23 Aug 2021 13:29:45 +0000 (15:29 +0200)
committerMichał Górny <mgorny@moritz.systems>
Mon, 13 Sep 2021 11:05:06 +0000 (13:05 +0200)
commit8567f4d4b9a79f041406026011fb8151b24b8c99
treeaf17cacc60b75d650fb0d1ebd729d4378b7075f0
parent1d771e19fd1a1e0e0a3491cdb2ccf344f7330547
[lldb] Support querying registers via generic names without alt_names

Update GetRegisterInfoByName() methods to support getting registers
by a generic name independently of alt_name entries in the register
context.  This makes it possible to use generic names when interacting
with gdbserver (that does not supply alt_names).  It also makes it
possible to remove some of the duplicated information from register
context declarations and/or use alt_names for another purpose.

Differential Revision: https://reviews.llvm.org/D108554
lldb/include/lldb/Core/ValueObjectRegister.h
lldb/source/API/SBFrame.cpp
lldb/source/Core/ValueObjectRegister.cpp
lldb/source/Host/common/NativeRegisterContext.cpp
lldb/source/Target/RegisterContext.cpp
lldb/test/API/functionalities/gdb_remote_client/TestGDBServerTargetXML.py [new file with mode: 0644]