llvm-project/lldb/source/Core
Greg Clayton 016a95eb04 Looking at some of the test suite failures in DWARF in .o files with the
debug map showed that the location lists in the .o files needed some 
refactoring in order to work. The case that was failing was where a function
that was in the "__TEXT.__textcoal_nt" in the .o file, and in the 
"__TEXT.__text" section in the main executable. This made symbol lookup fail
due to the way we were finding a real address in the debug map which was
by finding the section that the function was in in the .o file and trying to
find this in the main executable. Now the section list supports finding a
linked address in a section or any child sections. After fixing this, we ran
into issue that were due to DWARF and how it represents locations lists. 
DWARF makes a list of address ranges and expressions that go along with those
address ranges. The location addresses are expressed in terms of a compile
unit address + offset. This works fine as long as nothing moves around. When
stuff moves around and offsets change between the remapped compile unit base
address and the new function address, then we can run into trouble. To deal
with this, we now store supply a location list slide amount to any location
list expressions that will allow us to make the location list addresses into
zero based offsets from the object that owns the location list (always a
function in our case). 

With these fixes we can now re-link random address ranges inside the debugger
for use with our DWARF + debug map, incremental linking, and more.

Another issue that arose when doing the DWARF in the .o files was that GCC
4.2 emits a ".debug_aranges" that only mentions functions that are externally
visible. This makes .debug_aranges useless to us and we now generate a real
address range lookup table in the DWARF parser at the same time as we index
the name tables (that are needed because .debug_pubnames is just as useless).
llvm-gcc doesn't generate a .debug_aranges section, though this could be 
fixed, we aren't going to rely upon it.

Renamed a bunch of "UINT_MAX" to "UINT32_MAX".

llvm-svn: 113829
2010-09-14 02:20:48 +00:00
..
Address.cpp Cleaned up the output of "image lookup --address <ADDR>" which involved 2010-09-10 01:30:46 +00:00
AddressRange.cpp Cleaned up the output of "image lookup --address <ADDR>" which involved 2010-09-10 01:30:46 +00:00
AddressResolver.cpp
AddressResolverFileLine.cpp Merged Eli Friedman's linux build changes where he added Makefile files that 2010-07-09 20:39:50 +00:00
AddressResolverName.cpp Added function name types to allow us to set breakpoints by name more 2010-06-28 21:30:43 +00:00
ArchSpec.cpp Merged Eli Friedman's linux build changes where he added Makefile files that 2010-07-09 20:39:50 +00:00
Baton.cpp
Broadcaster.cpp
Communication.cpp Remove a premature invalidation of a threads pthread_t handle, thus avoiding 2010-07-23 15:43:25 +00:00
Connection.cpp
ConnectionFileDescriptor.cpp Warnings cleanup patch from Jean-Daniel Dupas. 2010-07-23 15:37:46 +00:00
ConstString.cpp Improved name demangling performance by 20% on darwin. 2010-09-03 23:26:12 +00:00
DataBufferHeap.cpp
DataBufferMemoryMap.cpp Merged Eli Friedman's linux build changes where he added Makefile files that 2010-07-09 20:39:50 +00:00
DataExtractor.cpp Avoid std::bitset<64>::to_string() since it is missing in earlier C++ 2010-07-21 01:08:41 +00:00
Debugger.cpp Fixed an error in Debugger::UpdateExecutionContext() where an invalid index ID 0 2010-09-14 00:53:53 +00:00
Disassembler.cpp Fixed an error that could occur during disassembly that could cause a function name to be printed before the first _and_ the second instruction of disassembly when there are two symbols -- one debug symbol and one linker symbol. 2010-09-06 23:11:45 +00:00
DynamicLoader.cpp
Error.cpp Merged Eli Friedman's linux build changes where he added Makefile files that 2010-07-09 20:39:50 +00:00
Event.cpp Remove use of STL collection class use of the "data()" method since it isn't 2010-07-20 22:52:08 +00:00
FileSpec.cpp Remove Host::ResolveExecutableLocation (very recent addition); replace use of 2010-09-12 00:10:52 +00:00
FileSpecList.cpp Add missing includes. 2010-06-09 08:50:27 +00:00
Flags.cpp
InputReader.cpp I enabled some extra warnings for hidden local variables and for hidden 2010-07-14 00:18:15 +00:00
Language.cpp Created lldb::LanguageType by moving an enumeration from the 2010-07-28 02:04:09 +00:00
Listener.cpp Add missing includes. 2010-06-09 08:50:27 +00:00
Log.cpp Fixed the log streams for logs that output to 2010-06-23 21:28:25 +00:00
Makefile Merged Eli Friedman's linux build changes where he added Makefile files that 2010-07-09 20:39:50 +00:00
Mangled.cpp Improved name demangling performance by 20% on darwin. 2010-09-03 23:26:12 +00:00
Module.cpp Remove the eSymbolTypeFunction, eSymbolTypeGlobal, and eSymbolTypeStatic. 2010-09-11 03:13:28 +00:00
ModuleChild.cpp
ModuleList.cpp Got a lot of the kinks worked out in the inline support after debugging more 2010-08-24 21:05:24 +00:00
PluginManager.cpp The first part of an lldb native stack unwinder. 2010-09-10 07:49:16 +00:00
RegularExpression.cpp Remove use of STL collection class use of the "data()" method since it isn't 2010-07-20 22:52:08 +00:00
Scalar.cpp Move Args.{cpp,h} and Options.{cpp,h} to Interpreter where they really belong. 2010-06-15 19:49:27 +00:00
SearchFilter.cpp Merged Eli Friedman's linux build changes where he added Makefile files that 2010-07-09 20:39:50 +00:00
Section.cpp Looking at some of the test suite failures in DWARF in .o files with the 2010-09-14 02:20:48 +00:00
SourceManager.cpp
State.cpp Add missing includes. 2010-06-09 08:50:27 +00:00
Stream.cpp Merged Eli Friedman's linux build changes where he added Makefile files that 2010-07-09 20:39:50 +00:00
StreamFile.cpp Merged Eli Friedman's linux build changes where he added Makefile files that 2010-07-09 20:39:50 +00:00
StreamString.cpp Add missing includes. 2010-06-09 08:50:27 +00:00
StringList.cpp Merged Eli Friedman's linux build changes where he added Makefile files that 2010-07-09 20:39:50 +00:00
TTYState.cpp
Timer.cpp Added some missing API for address resolving within a module, and looking 2010-09-10 18:31:35 +00:00
UUID.cpp Remove unused uuid_t constructor for lldb_private::UUID. 2010-06-10 03:08:05 +00:00
UserID.cpp Move trivial parts of UserID into the header. 2010-06-22 10:44:12 +00:00
UserSettingsController.cpp Make all debugger-level user settable variables into instance variables. 2010-09-09 06:25:08 +00:00
VMRange.cpp Added support for inlined stack frames being represented as real stack frames 2010-08-24 00:45:41 +00:00
Value.cpp Changed "Error Value::GetValueAsData (...)" to set the data extractor byte 2010-08-18 18:28:52 +00:00
ValueObject.cpp Added the summary values for function pointers so we can show where they 2010-09-13 03:32:57 +00:00
ValueObjectChild.cpp Change over to using the definitions for mach-o types and defines to the 2010-07-21 22:12:05 +00:00
ValueObjectList.cpp StackFrame objects now own ValueObjects for any frame variables (locals, args, 2010-09-02 02:59:18 +00:00
ValueObjectRegister.cpp Change over to using the definitions for mach-o types and defines to the 2010-07-21 22:12:05 +00:00
ValueObjectVariable.cpp Looking at some of the test suite failures in DWARF in .o files with the 2010-09-14 02:20:48 +00:00