llvm-project/lldb
Greg Clayton 8f343b09e9 Added support for loading and unloading shared libraries. This was done by
adding support into lldb_private::Process:

    virtual uint32_t
    lldb_private::Process::LoadImage (const FileSpec &image_spec, 
                                      Error &error);

    virtual Error
    lldb_private::Process::UnloadImage (uint32_t image_token);

There is a default implementation that should work for both linux and MacOSX.
This ability has also been exported through the SBProcess API:

    uint32_t
    lldb::SBProcess::LoadImage (lldb::SBFileSpec &image_spec, 
                                lldb::SBError &error);

    lldb::SBError
    lldb::SBProcess::UnloadImage (uint32_t image_token);

Modified the DynamicLoader plug-in interface to require it to be able to 
tell us if it is currently possible to load/unload a shared library:

    virtual lldb_private::Error
    DynamicLoader::CanLoadImage () = 0;

This way the dynamic loader plug-ins are allows to veto whether we can 
currently load a shared library since the dynamic loader might know if it is
currenlty loading/unloading shared libraries. It might also know about the
current host system and know where to check to make sure runtime or malloc
locks are currently being held.

Modified the expression parser to have ClangUserExpression::Evaluate() be
the one that causes the dynamic checkers to be loaded instead of other code
that shouldn't have to worry about it.

llvm-svn: 118227
2010-11-04 01:54:29 +00:00
..
docs Fix http://llvm.org/bugs/show_bug.cgi?id=8493 File name "2010-10-19-14:10:49.059609" is non-portable. 2010-10-28 16:24:26 +00:00
examples Add comment explaining the options used to invoke the test driver. 2010-10-25 21:38:35 +00:00
include Added support for loading and unloading shared libraries. This was done by 2010-11-04 01:54:29 +00:00
lib Patch from Jay Cornwall that modifies the LLDB "Host" layer to reuse more 2010-09-07 20:11:56 +00:00
lldb.xcodeproj Fixed shared library unloads when the unloaded library doesn't come off 2010-11-03 04:08:06 +00:00
resources Bumped lldb Xcode project version to 28 for lldb-28. 2010-10-31 19:58:25 +00:00
scripts Updated LLVM to latest version as of 10/28 at 2010-10-29 18:38:40 +00:00
source Added support for loading and unloading shared libraries. This was done by 2010-11-04 01:54:29 +00:00
test Fix an incorrect comment in main.c and TestConditionalBreak.py. 2010-11-03 22:00:28 +00:00
tools Fix problem where "process detach" was not working properly. The 2010-11-02 16:16:53 +00:00
utils/emacs Add keyboard shortcuts: 2010-11-01 17:29:38 +00:00
www Clarified some caveats for thread format strings. 2010-10-04 03:06:05 +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 Comment out test targets; they don't work on Linux because test/Makefile uses 2010-07-09 22:36:15 +00:00