llvm-project/lldb/source/Core
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
..
Address.cpp Fixed the the breakpoint test case failures. 2013-11-09 00:03:31 +00:00
AddressRange.cpp Resolve printf formatting warnings on Linux: 2012-11-29 21:49:15 +00:00
AddressResolver.cpp
AddressResolverFileLine.cpp <rdar://problem/13521159> 2013-03-27 23:08:40 +00:00
AddressResolverName.cpp <rdar://problem/11398407> 2013-05-18 00:11:21 +00:00
ArchSpec.cpp POSIX RegisterContext for mips64 2013-10-10 00:59:47 +00:00
Baton.cpp Don't print out the baton pointer value for simple Baton classes. 2011-06-21 20:47:20 +00:00
Broadcaster.cpp <rdar://problem/13521159> 2013-03-27 23:08:40 +00:00
CMakeLists.txt Convert to UNIX line endings. 2013-09-25 10:37:32 +00:00
Communication.cpp MingW compilation (windows). Includes various refactoring to improve portability. 2013-08-23 12:44:05 +00:00
Connection.cpp
ConnectionFileDescriptor.cpp Expose SBPlatform through the public API. 2013-11-20 21:07:01 +00:00
ConnectionMachPort.cpp Fix some names in the wake of my Mach-O changes to LLVM. 2013-08-27 05:04:57 +00:00
ConnectionSharedMemory.cpp MingW compilation (windows). Includes various refactoring to improve portability. 2013-08-23 12:44:05 +00:00
ConstString.cpp Changed the bool conversion operator on ConstString 2013-10-03 22:27:29 +00:00
DataBufferHeap.cpp <rdar://problem/14521548> 2013-07-24 18:17:35 +00:00
DataBufferMemoryMap.cpp On Windows MapViewOfFile requires the offset to be aligned on the system dwAllocationGranularity 2013-09-26 18:52:08 +00:00
DataEncoder.cpp Fixed the ValidOffsetForDataOfSize() to use simpler logic. Fixed DataExtractor::BytesLeft() to return the correct value. 2013-03-21 00:29:45 +00:00
DataExtractor.cpp Fix endianness in ObjectFile::CopyData 2013-10-09 20:34:25 +00:00
Debugger.cpp Roll back the changes I made in r193907 which created a new Frame 2013-11-04 09:33:30 +00:00
Disassembler.cpp Roll back the changes I made in r193907 which created a new Frame 2013-11-04 09:33:30 +00:00
DynamicLoader.cpp <rdar://problem/13854277> 2013-05-10 21:47:16 +00:00
EmulateInstruction.cpp Roll back the changes I made in r193907 which created a new Frame 2013-11-04 09:33:30 +00:00
Error.cpp Added a 'jump' command, similar to GDBs. 2013-09-12 02:20:34 +00:00
Event.cpp Improve the broadcast event dumping. 2012-10-29 18:08:18 +00:00
FileLineResolver.cpp Changed the bool conversion operator on ConstString 2013-10-03 22:27:29 +00:00
FileSpecList.cpp <rdar://problem/13069948> 2013-01-25 18:06:21 +00:00
History.cpp Resolve printf formatting warnings on Linux: 2012-11-29 21:49:15 +00:00
InputReader.cpp Fix Linux build warnings due to redefinition of macros: 2012-12-05 00:20:57 +00:00
InputReaderEZ.cpp Headers cleanup 2012-03-20 19:33:01 +00:00
InputReaderStack.cpp Create new class, InputReaderStack, to better handle 2011-06-02 19:18:55 +00:00
Language.cpp
Listener.cpp Sort out a number of mismatched integer types in order to cut down the number of compiler warnings. 2013-06-19 19:04:53 +00:00
Log.cpp Change a printf() formatter to use %d for a uint32_t. 2013-09-11 21:00:37 +00:00
Makefile Remove lldb's custom copy of the C++ demangler, used only on Mac 2013-07-03 04:52:51 +00:00
Mangled.cpp Fix MSVC build 2013-11-20 15:19:08 +00:00
Module.cpp Expose SBPlatform through the public API. 2013-11-20 21:07:01 +00:00
ModuleChild.cpp <rdar://problem/10103468> 2012-02-24 01:59:29 +00:00
ModuleList.cpp Added a 'jump' command, similar to GDBs. 2013-09-12 02:20:34 +00:00
Opcode.cpp Remove EOL whitespace and redundant break statement 2013-10-04 15:29:20 +00:00
PluginManager.cpp Add a new system runtime plugin type - just the top level 2013-11-05 03:57:19 +00:00
RegisterValue.cpp RegisterValues can now report their contents as 2013-04-30 21:41:44 +00:00
RegularExpression.cpp <rdar://problem/13966084> 2013-05-23 20:27:15 +00:00
Scalar.cpp Check for division by zero when performing modulus 2013-08-08 17:57:00 +00:00
SearchFilter.cpp Changed the bool conversion operator on ConstString 2013-10-03 22:27:29 +00:00
Section.cpp Add a new Section::SetFileAddress method to change a Section's file 2013-08-16 03:20:42 +00:00
SourceManager.cpp Fix a bunch of compile time warnings and a build failure on ubuntu. 2013-08-30 17:50:57 +00:00
State.cpp More Linux warnings fixes (remove default labels as needed): 2012-12-07 20:51:09 +00:00
Stream.cpp <rdar://problem/13069948> 2013-01-25 18:06:21 +00:00
StreamAsynchronousIO.cpp After discussing with Chris Lattner, we require C++11, so lets get rid of the macros and just use C++11. 2013-04-18 22:45:39 +00:00
StreamCallback.cpp <rdar://problem/13069948> 2013-01-25 18:06:21 +00:00
StreamFile.cpp Expose SBPlatform through the public API. 2013-11-20 21:07:01 +00:00
StreamGDBRemote.cpp merge lldb-platform-work branch (and assorted fixes) into trunk 2013-08-26 23:57:52 +00:00
StreamString.cpp <rdar://problem/13069948> 2013-01-25 18:06:21 +00:00
StringList.cpp Sort out a number of mismatched integer types in order to cut down the number of compiler warnings. 2013-06-19 19:04:53 +00:00
Timer.cpp MingW compilation (windows). Includes various refactoring to improve portability. 2013-08-23 12:44:05 +00:00
UUID.cpp Added a way to extract the module specifications from a file. A module specification is information that is required to describe a module (executable, shared library, object file, ect). This information includes host path, platform path (remote path), symbol file path, UUID, object name (for objects in .a files for example you could have an object name of "foo.o"), and target triple. Module specification can be used to create a module, or used to add a module to a target. A list of module specifications can be used to enumerate objects in container objects (like universal mach files and BSD archive files). 2013-07-08 22:22:41 +00:00
UserID.cpp Implemented a types.py module that allows types to be inspected for padding. 2013-06-19 21:50:28 +00:00
UserSettingsController.cpp Fix Linux build warnings due to redefinition of macros: 2012-12-05 00:20:57 +00:00
VMRange.cpp <rdar://problem/13069948> 2013-01-25 18:06:21 +00:00
Value.cpp Fixed a bug where variables' byte sizes would not 2013-10-09 02:32:37 +00:00
ValueObject.cpp Roll back the changes I made in r193907 which created a new Frame 2013-11-04 09:33:30 +00:00
ValueObjectCast.cpp Huge change to clean up types. 2013-07-11 22:46:58 +00:00
ValueObjectChild.cpp Huge change to clean up types. 2013-07-11 22:46:58 +00:00
ValueObjectConstResult.cpp Huge change to clean up types. 2013-07-11 22:46:58 +00:00
ValueObjectConstResultChild.cpp Huge change to clean up types. 2013-07-11 22:46:58 +00:00
ValueObjectConstResultImpl.cpp Huge change to clean up types. 2013-07-11 22:46:58 +00:00
ValueObjectDynamicValue.cpp Further fixes to the dynamic type system prompted by ObjCDataFormatterTestCase.test_nserror_with_dsym_and_run_command 2013-10-31 22:42:00 +00:00
ValueObjectList.cpp <rdar://problem/13069948> 2013-01-25 18:06:21 +00:00
ValueObjectMemory.cpp Huge change to clean up types. 2013-07-11 22:46:58 +00:00
ValueObjectRegister.cpp Roll back the changes I made in r193907 which created a new Frame 2013-11-04 09:33:30 +00:00
ValueObjectSyntheticFilter.cpp <rdar://problem/15235492> 2013-10-15 22:42:14 +00:00
ValueObjectVariable.cpp Roll back the changes I made in r193907 which created a new Frame 2013-11-04 09:33:30 +00:00