llvm-capstone/lldb
Martin Storsjö 7d019d1a3b [LLDB] Set the right address size on output DataExtractors from ObjectFile
If filling in a DataExtractor from an ObjectFile, e.g. via the
ReadSectionData method, the output DataExtractor gets the address
size from the m_data member.

ObjectFile's m_data member is initialized without knowledge about
the address size (so the address size is set based on the host's
sizeof(void*), and at that point within ObjectFile's constructor,
virtual methods implemented in subclasses (like GetAddressByteSize())
can't be called, therefore fix it up when filling in external
DataExtractors.

This makes sure that line tables from executables with a different
address size are parsed properly; previously this tripped up
DWARFDebugLine::LineTable::parse for 32 bit executables on a 64 bit
host, as the address size in the line table (4) didn't match the
one set in the DWARFDataExtractor.

Differential Revision: https://reviews.llvm.org/D70848
2019-12-02 22:42:00 +02:00
..
cmake Revert "[CMake] Re-enable -Wno-gnu-anonymous-struct & -Wno-nested-anon-types." 2019-11-18 17:00:35 -08:00
docs [Docs] Generate the LLDB man page with Sphinx 2019-11-21 10:04:11 -08:00
examples [Examples] Move structured-data unpacking out of the loop. (NFC) 2019-11-22 15:43:39 -08:00
include/lldb [lldb][NFC] Use raw_ostream instead of Stream in Baton::GetDescription 2019-12-02 13:27:21 +01:00
packages/Python/lldbsuite [lldb] Fix TestFormattersSBAPI test 2019-12-02 12:24:11 -08:00
resources
scripts [LLDB][Python] remove ArgInfo::count 2019-11-04 12:48:49 -08:00
source [LLDB] Set the right address size on output DataExtractors from ObjectFile 2019-12-02 22:42:00 +02:00
test [LLDB] Set the right address size on output DataExtractors from ObjectFile 2019-12-02 22:42:00 +02:00
third_party/Python/module
tools [lldb] Remove FileSpec->CompileUnit inheritance 2019-11-29 11:44:45 +01:00
unittests [lldb][NFC] Remove ClangASTContext::GetBuiltinTypeForEncodingAndBitSize overload 2019-11-29 13:57:02 +01:00
utils [LLDB] Fix inline variable only used in assertion. (NFC) 2019-10-25 15:47:17 -07:00
.arcconfig
.clang-format
.gitignore
CMakeLists.txt [lldb] Record framework build path and use it everywhere 2019-11-06 14:05:35 -08:00
CODE_OWNERS.txt
LICENSE.TXT
use_lldb_suite_root.py