[LLDB] Add tests for PECOFF arm architecture identification
authorMartin Storsjo <martin@martin.st>
Tue, 24 Sep 2019 12:20:52 +0000 (12:20 +0000)
committerMartin Storsjo <martin@martin.st>
Tue, 24 Sep 2019 12:20:52 +0000 (12:20 +0000)
commit544c8f48c86cee7c8de5ed5dce99849a8ac72118
tree06fb2037fd1dc57ce563375daf6a5de45797824b
parent5bb1525392541ea8034b11f54ba0e6dfe2f55548
[LLDB] Add tests for PECOFF arm architecture identification

Add a test case for the change from SVN r372657, and for the
preexisting ARM identification.

Add a missing ArchDefinitionEntry for PECOFF/arm64, and tweak
the ArmNt case to set the architecture to armv7 (ArmNt never ran
on anything lower than that). (This avoids a case where
ArchSpec::MergeFrom would override the arch from arm to armv7 and
ArchSpec::CoreUpdated would reset the OS to unknown at the same time.)

Differential Revision: https://reviews.llvm.org/D67951

llvm-svn: 372741
lldb/lit/Modules/PECOFF/basic-info-arm.yaml [new file with mode: 0644]
lldb/lit/Modules/PECOFF/basic-info-arm64.yaml [new file with mode: 0644]
lldb/source/Plugins/ObjectFile/PECOFF/ObjectFilePECOFF.cpp
lldb/source/Utility/ArchSpec.cpp