llvm-project/lldb
Greg Clayton cc4d0146b4 This checking is part one of trying to add some threading safety to our
internals. The first part of this is to use a new class:

lldb_private::ExecutionContextRef

This class holds onto weak pointers to the target, process, thread and frame
and it also contains the thread ID and frame Stack ID in case the thread and
frame objects go away and come back as new objects that represent the same
logical thread/frame. 

ExecutionContextRef objcets have accessors to access shared pointers for
the target, process, thread and frame which might return NULL if the backing
object is no longer available. This allows for references to persistent program
state without needing to hold a shared pointer to each object and potentially
keeping that object around for longer than it needs to be. 

You can also "Lock" and ExecutionContextRef (which contains weak pointers)
object into an ExecutionContext (which contains strong, or shared pointers)
with code like

ExecutionContext exe_ctx (my_obj->GetExectionContextRef().Lock());

llvm-svn: 150801
2012-02-17 07:49:44 +00:00
..
docs When unwinding from the first frame, try to ask the remote debugserver 2011-12-13 05:39:38 +00:00
examples fixing comment to reflect that currentversion of OSX works with our STL formatters 2012-02-08 19:57:18 +00:00
include This checking is part one of trying to add some threading safety to our 2012-02-17 07:49:44 +00:00
lib This patch combines common code from Linux and FreeBSD into 2012-01-05 19:17:38 +00:00
lldb.xcodeproj reverting unwanted changes to scheme files with previous commit 2012-02-17 03:20:23 +00:00
lldb.xcworkspace I accidentally committed some changes to the 2011-12-21 21:30:33 +00:00
resources Bump version number up to 115. 2012-02-13 22:27:56 +00:00
scripts Adding formatters for several useful Objective-C/Cocoa data types. The new categories are not enabled at startup, but can be manually activated if desired. 2012-02-17 03:18:30 +00:00
source This checking is part one of trying to add some threading safety to our 2012-02-17 07:49:44 +00:00
test Adding formatters for several useful Objective-C/Cocoa data types. The new categories are not enabled at startup, but can be manually activated if desired. 2012-02-17 03:18:30 +00:00
tools Fixed an error with the 'G' packet on ARM when using the default GDB 2012-02-17 02:13:09 +00:00
utils Add a utility script: 2011-11-04 01:05:29 +00:00
www Document that we now support the GDB shorthand format syntax on any commands 2012-02-16 02:10:58 +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 This patch combines common code from Linux and FreeBSD into 2012-01-05 19:17:38 +00:00