forked from OSchip/llvm-project
fbb7634934
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 |
||
---|---|---|
.. | ||
CMakeLists.txt | ||
CommandCompletions.cpp | ||
CommandObjectApropos.cpp | ||
CommandObjectApropos.h | ||
CommandObjectArgs.cpp | ||
CommandObjectArgs.h | ||
CommandObjectBreakpoint.cpp | ||
CommandObjectBreakpoint.h | ||
CommandObjectBreakpointCommand.cpp | ||
CommandObjectBreakpointCommand.h | ||
CommandObjectCommands.cpp | ||
CommandObjectCommands.h | ||
CommandObjectDisassemble.cpp | ||
CommandObjectDisassemble.h | ||
CommandObjectExpression.cpp | ||
CommandObjectExpression.h | ||
CommandObjectFrame.cpp | ||
CommandObjectFrame.h | ||
CommandObjectHelp.cpp | ||
CommandObjectHelp.h | ||
CommandObjectLog.cpp | ||
CommandObjectLog.h | ||
CommandObjectMemory.cpp | ||
CommandObjectMemory.h | ||
CommandObjectMultiword.cpp | ||
CommandObjectPlatform.cpp | ||
CommandObjectPlatform.h | ||
CommandObjectPlugin.cpp | ||
CommandObjectPlugin.h | ||
CommandObjectProcess.cpp | ||
CommandObjectProcess.h | ||
CommandObjectQuit.cpp | ||
CommandObjectQuit.h | ||
CommandObjectRegister.cpp | ||
CommandObjectRegister.h | ||
CommandObjectSettings.cpp | ||
CommandObjectSettings.h | ||
CommandObjectSource.cpp | ||
CommandObjectSource.h | ||
CommandObjectSyntax.cpp | ||
CommandObjectSyntax.h | ||
CommandObjectTarget.cpp | ||
CommandObjectTarget.h | ||
CommandObjectThread.cpp | ||
CommandObjectThread.h | ||
CommandObjectType.cpp | ||
CommandObjectType.h | ||
CommandObjectVersion.cpp | ||
CommandObjectVersion.h | ||
CommandObjectWatchpoint.cpp | ||
CommandObjectWatchpoint.h | ||
CommandObjectWatchpointCommand.cpp | ||
CommandObjectWatchpointCommand.h | ||
Makefile |