llvm-project/lldb/source/Core
Pavel Labath 555130c3f6 [lldb][PPC64] Fixed long double variables dump
Summary:
LLDB's DumpDataExtractor was not prepared to handle PowerPC's long double type: PPCDoubleDouble.

As it is somewhat special, treating it as other regular float types resulted in getting wrong information about it.
In this particular case, llvm::APFloat::getSizeInBits(PPCDoubleDouble) was returning 0.

This caused the TestSetValues.py test to fail, because lldb would abort on an assertion failure on APInt(), because of the invalid size.

Since in the PPC case the value of item_byte_size was correct and the
getSizeInBits call was only added to support x87DoubleExtended
semantics, this restricts the usage of getSizeInBits to the x87
semantics.

Reviewers: labath, clayborg

Reviewed By: labath

Subscribers: llvm-commits, anajuliapc, alexandreyy, lbianc, lldb-commits

Differential Revision: https://reviews.llvm.org/D42083
Author: Leandro Lupori <leandro.lupori@gmail.com>

llvm-svn: 322666
2018-01-17 15:11:20 +00:00
..
Address.cpp Move ArchSpec to the Utility module 2017-11-13 16:16:33 +00:00
AddressRange.cpp Move ArchSpec to the Utility module 2017-11-13 16:16:33 +00:00
AddressResolver.cpp iwyu fixes for lldbCore. 2017-04-06 21:28:29 +00:00
AddressResolverFileLine.cpp iwyu fixes for lldbCore. 2017-04-06 21:28:29 +00:00
AddressResolverName.cpp iwyu fixes for lldbCore. 2017-04-06 21:28:29 +00:00
Broadcaster.cpp iwyu fixes for lldbCore. 2017-04-06 21:28:29 +00:00
CMakeLists.txt Move ArchSpec to the Utility module 2017-11-13 16:16:33 +00:00
Communication.cpp Move Connection and IOObject interfaces to Utility module 2017-06-27 10:33:14 +00:00
Debugger.cpp [Core/Debugger] Remove some code that doesn't compile anymore. 2018-01-02 16:27:01 +00:00
Disassembler.cpp Move Timer and TraceOptions from Core to Utility 2017-06-29 14:32:17 +00:00
DumpDataExtractor.cpp [lldb][PPC64] Fixed long double variables dump 2018-01-17 15:11:20 +00:00
DynamicLoader.cpp Rename Error -> Status. 2017-05-12 04:51:55 +00:00
EmulateInstruction.cpp Rename Error -> Status. 2017-05-12 04:51:55 +00:00
Event.cpp iwyu fixes for lldbCore. 2017-04-06 21:28:29 +00:00
FileLineResolver.cpp iwyu fixes for lldbCore. 2017-04-06 21:28:29 +00:00
FileSpecList.cpp [Core] Garbage collect dead code untouched in years. NFCI. 2017-11-18 00:34:09 +00:00
FormatEntity.cpp Move ArchSpec to the Utility module 2017-11-13 16:16:33 +00:00
IOHandler.cpp Remove uses of std::auto_ptr, it's going away in C++17. 2017-09-14 15:01:55 +00:00
Listener.cpp iwyu fixes for lldbCore. 2017-04-06 21:28:29 +00:00
Mangled.cpp Move Timer and TraceOptions from Core to Utility 2017-06-29 14:32:17 +00:00
Module.cpp [Module] Throw away some more commented code. NFCI. 2017-11-18 00:52:29 +00:00
ModuleChild.cpp *** This commit represents a complete reformatting of the LLDB source code 2016-09-06 20:57:50 +00:00
ModuleList.cpp Move ArchSpec to the Utility module 2017-11-13 16:16:33 +00:00
Opcode.cpp iwyu fixes for lldbCore. 2017-04-06 21:28:29 +00:00
PluginManager.cpp Move StopInfoOverride callback to the new architecture plugin 2017-10-25 21:05:31 +00:00
RegisterValue.cpp Add check for self-assignment. NFC 2017-11-14 18:19:41 +00:00
Scalar.cpp Rename Error -> Status. 2017-05-12 04:51:55 +00:00
SearchFilter.cpp Update StructuredData::String to return StringRefs. 2017-05-12 05:49:54 +00:00
Section.cpp Improve FreeBSD kernel debugging 2017-10-02 14:35:07 +00:00
SourceManager.cpp iwyu fixes for lldbCore. 2017-04-06 21:28:29 +00:00
State.cpp iwyu fixes for lldbCore. 2017-04-06 21:28:29 +00:00
StreamAsynchronousIO.cpp iwyu fixes for lldbCore. 2017-04-06 21:28:29 +00:00
StreamFile.cpp iwyu fixes for lldbCore. 2017-04-06 21:28:29 +00:00
UserSettingsController.cpp Rename Error -> Status. 2017-05-12 04:51:55 +00:00
Value.cpp Add check for self-assignment. NFC 2017-11-14 18:19:41 +00:00
ValueObject.cpp Rename Error -> Status. 2017-05-12 04:51:55 +00:00
ValueObjectCast.cpp Rename Error -> Status. 2017-05-12 04:51:55 +00:00
ValueObjectChild.cpp Rename Error -> Status. 2017-05-12 04:51:55 +00:00
ValueObjectConstResult.cpp Rename Error -> Status. 2017-05-12 04:51:55 +00:00
ValueObjectConstResultCast.cpp Rename Error -> Status. 2017-05-12 04:51:55 +00:00
ValueObjectConstResultChild.cpp Rename Error -> Status. 2017-05-12 04:51:55 +00:00
ValueObjectConstResultImpl.cpp Rename Error -> Status. 2017-05-12 04:51:55 +00:00
ValueObjectDynamicValue.cpp Move ArchSpec to the Utility module 2017-11-13 16:16:33 +00:00
ValueObjectList.cpp iwyu fixes for lldbCore. 2017-04-06 21:28:29 +00:00
ValueObjectMemory.cpp Move ArchSpec to the Utility module 2017-11-13 16:16:33 +00:00
ValueObjectRegister.cpp Rename Error -> Status. 2017-05-12 04:51:55 +00:00
ValueObjectSyntheticFilter.cpp Rename Error -> Status. 2017-05-12 04:51:55 +00:00
ValueObjectVariable.cpp Move ArchSpec to the Utility module 2017-11-13 16:16:33 +00:00