llvm-project/lldb/source/Target
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
..
ABI.cpp Fixed build warnings. 2012-10-30 23:56:14 +00:00
CMakeLists.txt Add a new system runtime plugin type - just the top level 2013-11-05 03:57:19 +00:00
CPPLanguageRuntime.cpp <rdar://problem/11398407> 2013-05-18 00:11:21 +00:00
ExecutionContext.cpp Roll back the changes I made in r193907 which created a new Frame 2013-11-04 09:33:30 +00:00
LanguageRuntime.cpp <rdar://problem/13635174> 2013-10-11 19:48:25 +00:00
Makefile Merged Eli Friedman's linux build changes where he added Makefile files that 2010-07-09 20:39:50 +00:00
Memory.cpp <rdar://problem/13892516> 2013-05-21 01:00:52 +00:00
ObjCLanguageRuntime.cpp Huge change to clean up types. 2013-07-11 22:46:58 +00:00
OperatingSystem.cpp <rdar://problem/13854277> 2013-05-10 21:47:16 +00:00
PathMappingList.cpp <rdar://problem/12537646> 2013-03-14 22:52:17 +00:00
Platform.cpp Expose SBPlatform through the public API. 2013-11-20 21:07:01 +00:00
Process.cpp Expose SBPlatform through the public API. 2013-11-20 21:07:01 +00:00
RegisterContext.cpp <rdar://problem/15172417> 2013-11-13 23:28:31 +00:00
SectionLoadList.cpp <rdar://problem/14717184> 2013-08-13 01:42:25 +00:00
StackFrame.cpp Add new ivars to StackFrame so it can represent a stack collected 2013-11-04 11:02:52 +00:00
StackFrameList.cpp Add new ivars to StackFrame so it can represent a stack collected 2013-11-04 11:02:52 +00:00
StackID.cpp Resolve printf formatting warnings on Linux: 2012-11-29 21:49:15 +00:00
StopInfo.cpp Added a "--debug" option to the "expression" command. 2013-11-04 19:35:17 +00:00
SystemRuntime.cpp Change SBThread::GetExtendedBacktrace to 2013-11-12 23:33:32 +00:00
Target.cpp Expose SBPlatform through the public API. 2013-11-20 21:07:01 +00:00
TargetList.cpp Changed the bool conversion operator on ConstString 2013-10-03 22:27:29 +00:00
Thread.cpp <rdar://problem/15172417> 2013-11-13 23:28:31 +00:00
ThreadList.cpp Adding support for setting thread stop state when a process stops. 2013-05-10 17:19:04 +00:00
ThreadPlan.cpp clean up about 22 warnings messages 2013-08-07 19:05:15 +00:00
ThreadPlanBase.cpp If ThreadPlanCallFunction hasn't set its notion of the "real stop info" yet, just return the current PrivateStopInfo. 2013-06-04 01:40:51 +00:00
ThreadPlanCallFunction.cpp Log failure to restore thread state in ThreadPlanCallFunction::DoTakedown 2013-11-12 16:47:08 +00:00
ThreadPlanCallUserExpression.cpp Changed the ABIs and ClangFunction to take a 2013-11-08 01:14:26 +00:00
ThreadPlanRunToAddress.cpp <rdar://problem/13635174> 2013-10-11 19:48:25 +00:00
ThreadPlanShouldStopHere.cpp This commit does two things. One, it converts the return value of the QueueThreadPlanXXX 2013-07-18 21:48:26 +00:00
ThreadPlanStepInRange.cpp Roll back the changes I made in r193907 which created a new Frame 2013-11-04 09:33:30 +00:00
ThreadPlanStepInstruction.cpp Roll back the changes I made in r193907 which created a new Frame 2013-11-04 09:33:30 +00:00
ThreadPlanStepOut.cpp Roll back the changes I made in r193907 which created a new Frame 2013-11-04 09:33:30 +00:00
ThreadPlanStepOverBreakpoint.cpp If ThreadPlanCallFunction hasn't set its notion of the "real stop info" yet, just return the current PrivateStopInfo. 2013-06-04 01:40:51 +00:00
ThreadPlanStepOverRange.cpp Roll back the changes I made in r193907 which created a new Frame 2013-11-04 09:33:30 +00:00
ThreadPlanStepRange.cpp Roll back the changes I made in r193907 which created a new Frame 2013-11-04 09:33:30 +00:00
ThreadPlanStepThrough.cpp Roll back the changes I made in r193907 which created a new Frame 2013-11-04 09:33:30 +00:00
ThreadPlanStepUntil.cpp Roll back the changes I made in r193907 which created a new Frame 2013-11-04 09:33:30 +00:00
ThreadPlanTracer.cpp Huge change to clean up types. 2013-07-11 22:46:58 +00:00
ThreadSpec.cpp Resolve printf formatting warnings on Linux: 2012-11-29 21:49:15 +00:00
UnixSignals.cpp Change the default handling for SIGALRM and SIGCHLD to not notify. 2013-10-28 19:00:42 +00:00
UnwindAssembly.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