llvm-project/lldb/source/API
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
..
CMakeLists.txt Convert to UNIX line endings. 2013-09-25 10:37:32 +00:00
Makefile Merged Eli Friedman's linux build changes where he added Makefile files that 2010-07-09 20:39:50 +00:00
SBAddress.cpp <rdar://problem/13521159> 2013-03-27 23:08:40 +00:00
SBBlock.cpp Roll back the changes I made in r193907 which created a new Frame 2013-11-04 09:33:30 +00:00
SBBreakpoint.cpp <rdar://problem/11742979> 2013-05-03 01:29:27 +00:00
SBBreakpointLocation.cpp <rdar://problem/13521159> 2013-03-27 23:08:40 +00:00
SBBroadcaster.cpp <rdar://problem/13521159> 2013-03-27 23:08:40 +00:00
SBCommandInterpreter.cpp Roll back the changes I made in r193907 which created a new Frame 2013-11-04 09:33:30 +00:00
SBCommandReturnObject.cpp Second attempt at getting the PyCallable changes in trunk 2013-07-09 20:14:26 +00:00
SBCommunication.cpp Fixed a few obvious errors pointed out by the static analyzer. 2013-05-15 18:27:08 +00:00
SBCompileUnit.cpp Added the ability to get a list of types from a SBModule or SBCompileUnit. Sebastien Metrot wanted this, and sent a hollowed out patch. I filled in the blanks and did the low level implementation. The new functions are: 2013-06-18 22:51:05 +00:00
SBData.cpp Fix the format warnings. 2013-10-31 23:55:19 +00:00
SBDebugger.cpp Expose SBPlatform through the public API. 2013-11-20 21:07:01 +00:00
SBDeclaration.cpp <rdar://problem/13521159> 2013-03-27 23:08:40 +00:00
SBError.cpp <rdar://problem/13521159> 2013-03-27 23:08:40 +00:00
SBEvent.cpp <rdar://problem/13521159> 2013-03-27 23:08:40 +00:00
SBExpressionOptions.cpp This patch does a couple of things. 2013-11-07 00:11:47 +00:00
SBFileSpec.cpp Expose SBPlatform through the public API. 2013-11-20 21:07:01 +00:00
SBFileSpecList.cpp <rdar://problem/13521159> 2013-03-27 23:08:40 +00:00
SBFrame.cpp Roll back the changes I made in r193907 which created a new Frame 2013-11-04 09:33:30 +00:00
SBFunction.cpp Disassembler::DisassembleRange() currently calls Target::ReadMemory 2013-09-12 23:23:35 +00:00
SBHostOS.cpp MingW compilation (windows). Includes various refactoring to improve portability. 2013-08-23 12:44:05 +00:00
SBInputReader.cpp <rdar://problem/13521159> 2013-03-27 23:08:40 +00:00
SBInstruction.cpp Roll back the changes I made in r193907 which created a new Frame 2013-11-04 09:33:30 +00:00
SBInstructionList.cpp <rdar://problem/11330621> 2012-05-10 02:52:23 +00:00
SBLineEntry.cpp <rdar://problem/13521159> 2013-03-27 23:08:40 +00:00
SBListener.cpp fix a couple of clang static analyzer warnings. 2013-05-04 00:39:52 +00:00
SBModule.cpp Expose SBPlatform through the public API. 2013-11-20 21:07:01 +00:00
SBModuleSpec.cpp Made all other "operator bool"s explicit and ensured 2013-10-04 21:35:29 +00:00
SBPlatform.cpp Expose SBPlatform through the public API. 2013-11-20 21:07:01 +00:00
SBProcess.cpp Change SBThread::GetExtendedBacktrace to 2013-11-12 23:33:32 +00:00
SBSection.cpp Added a SBSection::GetParent() to the API. 2013-06-13 21:23:23 +00:00
SBSourceManager.cpp <rdar://problem/13443931> 2013-03-19 00:20:55 +00:00
SBStream.cpp Expose SBPlatform through the public API. 2013-11-20 21:07:01 +00:00
SBStringList.cpp Added copy constructors and assignment operators to all lldb::SB* classes 2010-11-05 23:17:00 +00:00
SBSymbol.cpp Disassembler::DisassembleRange() currently calls Target::ReadMemory 2013-09-12 23:23:35 +00:00
SBSymbolContext.cpp <rdar://problem/13521159> 2013-03-27 23:08:40 +00:00
SBSymbolContextList.cpp Removed all of the "#ifndef SWIG" from the SB header files since we are using 2012-02-06 01:44:54 +00:00
SBTarget.cpp Expose SBPlatform through the public API. 2013-11-20 21:07:01 +00:00
SBThread.cpp Add logging for the SB API which creates extended 2013-11-19 05:44:41 +00:00
SBType.cpp <rdar://problem/15144376> 2013-10-29 00:28:35 +00:00
SBTypeCategory.cpp <rdar://problem/11778815> 2013-10-08 19:03:22 +00:00
SBTypeFilter.cpp <rdar://problem/12978143> 2013-01-28 23:47:25 +00:00
SBTypeFormat.cpp <rdar://problem/12978143> 2013-01-28 23:47:25 +00:00
SBTypeNameSpecifier.cpp <rdar://problem/15144376> 2013-10-29 00:28:35 +00:00
SBTypeSummary.cpp <rdar://problem/12978143> 2013-01-28 23:47:25 +00:00
SBTypeSynthetic.cpp Improvements to the data formatters SB API: 2013-06-11 22:58:32 +00:00
SBValue.cpp Roll back the changes I made in r193907 which created a new Frame 2013-11-04 09:33:30 +00:00
SBValueList.cpp Daniel Malea reported seeing warnings for the use of anonymous namespaces in our public API. 2013-04-22 22:57:56 +00:00
SBWatchpoint.cpp <rdar://problem/13521159> 2013-03-27 23:08:40 +00:00