llvm-project/lldb
Greg Clayton e72dfb321c <rdar://problem/10103468>
I started work on being able to add symbol files after a debug session
had started with a new "target symfile add" command and quickly ran into
problems with stale Address objects in breakpoint locations that had 
lldb_private::Section pointers into modules that had been removed or 
replaced. This also let to grabbing stale modules from those sections. 
So I needed to thread harded the Address, Section and related objects.

To do this I modified the ModuleChild class to now require a ModuleSP
on initialization so that a weak reference can created. I also changed
all places that were handing out "Section *" to have them hand out SectionSP.
All ObjectFile, SymbolFile and SymbolVendors were inheriting from ModuleChild
so all of the find plug-in, static creation function and constructors now
require ModuleSP references instead of Module *. 

Address objects now have weak references to their sections which can
safely go stale when a module gets destructed. 

This checkin doesn't complete the "target symfile add" command, but it
does get us a lot clioser to being able to do such things without a high
risk of crashing or memory corruption.

llvm-svn: 151336
2012-02-24 01:59:29 +00:00
..
docs When unwinding from the first frame, try to ask the remote debugserver 2011-12-13 05:39:38 +00:00
examples <rdar://problem/10103468> 2012-02-24 01:59:29 +00:00
include <rdar://problem/10103468> 2012-02-24 01:59:29 +00:00
lib This patch combines common code from Linux and FreeBSD into 2012-01-05 19:17:38 +00:00
lldb.xcodeproj <rdar://problem/10103468> 2012-02-24 01:59:29 +00:00
lldb.xcworkspace I accidentally committed some changes to the 2011-12-21 21:30:33 +00:00
resources Bumping version to lldb-116. 2012-02-23 22:34:01 +00:00
scripts Updated LLVM to take some fixes that make the 2012-02-23 23:43:28 +00:00
source <rdar://problem/10103468> 2012-02-24 01:59:29 +00:00
test commenting parts of std::map test case which would make the test case fail when using TOT clang, but succeed on older compiler releases 2012-02-23 23:57:43 +00:00
tools Add a class method HasWatchpointOccurred() to inspect the "method of debug entry" field 2012-02-24 01:50:42 +00:00
utils Add a utility script: 2011-11-04 01:05:29 +00:00
www Minor modification. 2012-02-22 19:02:32 +00:00
.gitignore Added a .gitignore so that "git status" isn't 2012-02-07 21:53:52 +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 Revert the RTTI change from r151187. It make lldb compile with g++ 4.4 but it doesn't link anymore. The bug seems to be fixed in g++ 4.5. 2012-02-22 21:00:17 +00:00