llvm-project/lldb/source/Utility
Greg Clayton fbb7634934 Expose SBPlatform through the public API.
Example code:

remote_platform = lldb.SBPlatform("remote-macosx"); 
remote_platform.SetWorkingDirectory("/private/tmp")
debugger.SetSelectedPlatform(remote_platform)

connect_options = lldb.SBPlatformConnectOptions("connect://localhost:1111"); 
err = remote_platform.ConnectRemote(connect_options)
if err.Success():
    print >> result, 'Connected to remote platform:'
    print >> result, 'hostname: %s' % (remote_platform.GetHostname())
    src = lldb.SBFileSpec("/Applications/Xcode.app/Contents/SharedFrameworks/LLDB.framework", False)
    dst = lldb.SBFileSpec()
    # copy src to platform working directory since "dst" is empty
    err = remote_platform.Install(src, dst);
    if err.Success():
        print >> result, '%s installed successfully' % (src)
    else:
        print >> result, 'error: failed to install "%s": %s' % (src, err)


Implemented many calls needed in lldb-platform to be able to install a directory that contains symlinks, file and directories.

The remote lldb-platform can now launch GDB servers on the remote system so that remote debugging can be spawned through the remote platform when connected to a remote platform.

The API in SBPlatform is subject to change and will be getting many new functions.

llvm-svn: 195273
2013-11-20 21:07:01 +00:00
..
ARM_DWARF_Registers.cpp Various fixes for armv7 floating point/vector register support. 2013-03-13 00:14:30 +00:00
ARM_DWARF_Registers.h Various fixes for armv7 floating point/vector register support. 2013-03-13 00:14:30 +00:00
ARM_GCC_Registers.h Modified the LocateMacOSXFilesUsingDebugSymbols(...) function to locate 2011-07-19 03:57:15 +00:00
CMakeLists.txt Convert to UNIX line endings. 2013-09-25 10:37:32 +00:00
KQueue.cpp Added a kqueue class which isn't being used yet, but was part of trying to work around the limitations with the unix select() call and how it is limited to FD_SETSIZE file descriptors. 2013-02-16 22:46:58 +00:00
KQueue.h Make KQueue import the header in the correct path. 2013-04-18 20:58:20 +00:00
Makefile Only enable RTTI for cxa_demangle.cpp 2013-02-15 02:36:40 +00:00
PseudoTerminal.cpp MingW compilation (windows). Includes various refactoring to improve portability. 2013-08-23 12:44:05 +00:00
Range.cpp <rdar://problem/14134716> 2013-06-17 22:51:50 +00:00
SharingPtr.cpp <rdar://problem/15182550> 2013-10-18 18:57:49 +00:00
StringExtractor.cpp Expose SBPlatform through the public API. 2013-11-20 21:07:01 +00:00
StringExtractor.h merge lldb-platform-work branch (and assorted fixes) into trunk 2013-08-26 23:57:52 +00:00
StringExtractorGDBRemote.cpp Expose SBPlatform through the public API. 2013-11-20 21:07:01 +00:00
StringExtractorGDBRemote.h Expose SBPlatform through the public API. 2013-11-20 21:07:01 +00:00
TimeSpecTimeout.cpp Added a kqueue class which isn't being used yet, but was part of trying to work around the limitations with the unix select() call and how it is limited to FD_SETSIZE file descriptors. 2013-02-16 22:46:58 +00:00
TimeSpecTimeout.h Added a kqueue class which isn't being used yet, but was part of trying to work around the limitations with the unix select() call and how it is limited to FD_SETSIZE file descriptors. 2013-02-16 22:46:58 +00:00
UuidCompatibility.h Fix build on Linux 2013-04-17 19:24:22 +00:00