hanchenye-llvm-project/lldb/unittests
Pavel Labath efddda3d8d ObjectFileELF: Fix symbol lookup in bss section
Summary:
If we have symbol information in a separate file, we need to be very
careful about presenting a unified section view of module to the rest of
the debugger. ObjectFileELF had code to handle that, but it was being
overly cautious -- the section->GetFileSize()!=0 meant that the
unification would fail for sections which do not occupy any space in the
object file (e.g., .bss). In my case, that manifested itself as not
being able to display the values of .bss variables properly as the
section associated with the variable did not have it's load address set
(because it was not present in the unified section list).

I test this by making sure the unified section list and the variables
refer to the same section.

Reviewers: eugene, zturner

Subscribers: tberghammer, lldb-commits, mgorny

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

llvm-svn: 301917
2017-05-02 12:40:31 +00:00
..
Breakpoint Move classes from Core -> Utility. 2017-02-02 21:39:50 +00:00
Core Recompute ArchSpec core after MergeFrom 2017-04-20 12:30:18 +00:00
Editline Move StringList from Core -> Utility. 2017-03-21 18:25:04 +00:00
Expression [Windows] Remove the #include <eh.h> hack. 2017-03-03 20:21:59 +00:00
Host Re-landing IPv6 support for LLDB Host 2017-04-26 23:17:20 +00:00
Interpreter Fix crash when completing in the current directory. 2017-04-15 02:44:53 +00:00
Language Add more tests for ExtractContextAndIdentifier 2017-04-06 23:12:43 +00:00
ObjectFile ObjectFileELF: Fix symbol lookup in bss section 2017-05-02 12:40:31 +00:00
Platform [CMake] Update unit tests with accurate dependencies 2017-02-01 22:17:00 +00:00
Process Re-landing IPv6 support for LLDB Host 2017-04-26 23:17:20 +00:00
ScriptInterpreter [CMake] Update unit tests with accurate dependencies 2017-02-01 22:17:00 +00:00
Signals Make LLDB skip server-client roundtrip for signals that don't require any actions 2017-03-07 21:34:40 +00:00
Symbol [CMake] Update unit tests with accurate dependencies 2017-02-01 22:17:00 +00:00
SymbolFile Move FileSpec from Host -> Utility. 2017-03-22 18:40:07 +00:00
Target Add format_provider for the MemoryRegionInfo::OptionalBool enum 2017-02-22 10:37:57 +00:00
UnwindAssembly [CMake] Update unit tests with accurate dependencies 2017-02-01 22:17:00 +00:00
Utility Resubmit "Delete the remainder of platform specific code in FileSpec." 2017-03-22 17:33:23 +00:00
debugserver Re-landing IPv6 support for LLDB Host 2017-04-26 23:17:20 +00:00
CMakeLists.txt Support Unit Testing debugserver 2017-04-12 21:56:29 +00:00
gtest_common.h [Windows] Remove the #include <eh.h> hack. 2017-03-03 20:21:59 +00:00