2017-02-15 03:06:07 +08:00
|
|
|
add_lldb_unittest(TargetTests
|
[lldb] Delete register info definitions in the x86_64 ABI classes
Summary:
These definitions are used to "augment" information received from the remote
target with eh/debug frame and "generic" register numbers.
Besides being verbose, this information was also incomplete (new registers like
xmm16-31 were missing) and sometimes even downright wrong (ymm register
numbers).
Most of this information is available via llvm's MCRegisterInfo. This patch
creates a new class, MCBasedABI, which retrieves the eh and debug frame register
numbers this way. The tricky part here is that the llvm class uses all-caps
register names, whereas lldb register are lowercase, and sometimes called
slightly differently. Therefore this class introduces some hooks to allow a
subclass to customize the MC lookup. The subclass also needs to suply the
"generic" register numbers, as this is an lldb invention.
This patch ports the x86_64 ABI classes to use the new register info mechanism.
It also creates a new "ABIx86_64" class which can be used to house code common
to x86_64 both ABIs. Right now, this just consists of a single function, but
there are plenty of other things that could be moved here too.
Reviewers: JDevlieghere, jasonmolenda
Subscribers: mgorny, lldb-commits
Tags: #lldb
Differential Revision: https://reviews.llvm.org/D74244
2020-02-04 00:58:37 +08:00
|
|
|
ABITest.cpp
|
2019-08-08 00:09:35 +08:00
|
|
|
ExecutionContextTest.cpp
|
2017-02-22 18:37:57 +08:00
|
|
|
MemoryRegionInfoTest.cpp
|
2017-02-15 03:06:07 +08:00
|
|
|
ModuleCacheTest.cpp
|
2018-05-21 22:14:36 +08:00
|
|
|
PathMappingListTest.cpp
|
2020-05-14 22:05:40 +08:00
|
|
|
RemoteAwarePlatformTest.cpp
|
2020-02-07 23:33:33 +08:00
|
|
|
StackFrameRecognizerTest.cpp
|
2017-02-15 03:06:07 +08:00
|
|
|
|
|
|
|
LINK_LIBS
|
|
|
|
lldbCore
|
|
|
|
lldbHost
|
|
|
|
lldbPluginObjectFileELF
|
2019-08-08 00:09:35 +08:00
|
|
|
lldbPluginPlatformLinux
|
2019-07-26 15:03:28 +08:00
|
|
|
lldbPluginSymbolFileSymtab
|
2020-02-07 23:33:33 +08:00
|
|
|
lldbTarget
|
2019-08-08 00:09:35 +08:00
|
|
|
lldbSymbol
|
|
|
|
lldbUtility
|
2017-06-29 21:02:11 +08:00
|
|
|
lldbUtilityHelpers
|
2017-02-15 03:06:07 +08:00
|
|
|
LINK_COMPONENTS
|
|
|
|
Support
|
|
|
|
)
|
|
|
|
|
|
|
|
add_unittest_inputs(TargetTests TestModule.so)
|