llvm-project/lldb
Stephen Wilson 8063a4a47a Do not parse DIE's outside a compilation units range.
In DWARFCompileUnit::ExtractDIEsIfNeeded we are relying on a compilation units
DIEs to be terminated by a null entry.  I think the standard is fairly clear
that all sibling chains are to be terminated by null, but at least gcc 4.5.2
disagrees -- the top level chain drops the final entry.  This results in us
interpreting the next compilation unit header as a DIE.

Regardless of whether gcc is right or wrong, we should not overstep a
compilation units extent.  This patch ensures that we do not attempt to extract
a DIE beyond the length specified for a given DWARFCompileUnit by ensuring our
current offset is strictly less than the start of the next CU.

llvm-svn: 131721
2011-05-20 04:27:12 +00:00
..
docs Spelling changes applied from lldb_spelling.diffs from Bruce Mitchener. 2011-01-08 20:28:42 +00:00
examples Modified to take advantage of the iteration protocol for our lldb container objects. 2011-04-28 23:26:17 +00:00
include Fix a tag type mismatch (i.e. class vs. struct) warning. 2011-05-19 23:37:13 +00:00
lib Add the LanguageRuntime plugins to liblldb. Fixes link errors for me; if this 2011-05-19 23:53:23 +00:00
lldb.xcodeproj Added an allocated memory cache to avoid having to allocate memory over and 2011-05-17 03:37:42 +00:00
lldb.xcworkspace Adding a Xcode workspace for lldb. 2011-01-27 20:15:39 +00:00
resources Bumped Xcode project versions to lldb-46 and debugserver-131. 2011-01-29 07:14:26 +00:00
scripts Fixed an issue in GDBRemoteCommunicationClient where we weren't listening to 2011-05-20 03:15:54 +00:00
source Do not parse DIE's outside a compilation units range. 2011-05-20 04:27:12 +00:00
test Add radar info. 2011-05-19 21:31:35 +00:00
tools Fix places that were writing directly to the debugger's output 2011-05-16 19:20:50 +00:00
utils Modified to take advantage of the iteration protocol for our lldb container objects. 2011-04-28 23:34:58 +00:00
www Reroute the blog link to the LLVM blog site. 2011-04-22 21:03:40 +00:00
INSTALL.txt You'll need to be running Mac OS X to get lldb to build right now. 2010-06-09 07:29:26 +00:00
LICENSE.TXT test commit 2010-06-09 03:55:24 +00:00
Makefile python-config in Makefiles 2011-05-19 23:09:48 +00:00