llvm-project/lldb/source/Commands
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
CommandCompletions.cpp unused variable, typedef requires name warning cleanup 2013-08-26 17:07:34 +00:00
CommandObjectApropos.cpp Apropos should search user commands as well as built-in commands. 2013-05-17 01:30:37 +00:00
CommandObjectApropos.h Make raw & parsed commands subclasses of CommandObject rather than having the raw version implement an 2012-06-08 21:56:10 +00:00
CommandObjectArgs.cpp Roll back the changes I made in r193907 which created a new Frame 2013-11-04 09:33:30 +00:00
CommandObjectArgs.h Make raw & parsed commands subclasses of CommandObject rather than having the raw version implement an 2012-06-08 21:56:10 +00:00
CommandObjectBreakpoint.cpp Roll back the changes I made in r193907 which created a new Frame 2013-11-04 09:33:30 +00:00
CommandObjectBreakpoint.h Make raw & parsed commands subclasses of CommandObject rather than having the raw version implement an 2012-06-08 21:56:10 +00:00
CommandObjectBreakpointCommand.cpp Add OptionParser.h 2013-09-05 16:42:23 +00:00
CommandObjectBreakpointCommand.h Make raw & parsed commands subclasses of CommandObject rather than having the raw version implement an 2012-06-08 21:56:10 +00:00
CommandObjectCommands.cpp Add OptionParser.h 2013-09-05 16:42:23 +00:00
CommandObjectCommands.h Fix GetRepeatCommand so it works with multi-word commands. 2010-07-07 03:36:20 +00:00
CommandObjectDisassemble.cpp Roll back the changes I made in r193907 which created a new Frame 2013-11-04 09:33:30 +00:00
CommandObjectDisassemble.h Change the disassemble option to specify the architecture from '-a' 2013-04-11 03:14:01 +00:00
CommandObjectExpression.cpp This patch does a couple of things. 2013-11-07 00:11:47 +00:00
CommandObjectExpression.h Added a "--debug" option to the "expression" command. 2013-11-04 19:35:17 +00:00
CommandObjectFrame.cpp Give a better error when the index argument for “frame select” can’t be parsed. 2013-11-05 18:25:23 +00:00
CommandObjectFrame.h
CommandObjectHelp.cpp Add OptionParser.h 2013-09-05 16:42:23 +00:00
CommandObjectHelp.h <rdar://problem/11914077> 2013-06-12 01:50:57 +00:00
CommandObjectLog.cpp Add OptionParser.h 2013-09-05 16:42:23 +00:00
CommandObjectLog.h
CommandObjectMemory.cpp Minor improvement to the "memory find" command 2013-11-13 20:08:30 +00:00
CommandObjectMemory.h
CommandObjectMultiword.cpp <rdar://problem/11914077> 2013-06-12 01:50:57 +00:00
CommandObjectPlatform.cpp Expose SBPlatform through the public API. 2013-11-20 21:07:01 +00:00
CommandObjectPlatform.h Centralized a lot of the status information for processes, 2011-04-18 08:33:37 +00:00
CommandObjectPlugin.cpp <rdar://problem/13209140> 2013-04-24 21:29:08 +00:00
CommandObjectPlugin.h Implementing plugins that provide commands. 2012-09-28 23:57:51 +00:00
CommandObjectProcess.cpp Allow Process::WaitForProcessToStop to return immediately if process is already in the stopped state 2013-10-09 16:56:28 +00:00
CommandObjectProcess.h
CommandObjectQuit.cpp A couple of small fixes to make core file debugging less noisy. 2013-05-11 00:52:25 +00:00
CommandObjectQuit.h <rdar://problem/12786725> 2013-01-17 21:36:19 +00:00
CommandObjectRegister.cpp Made all other "operator bool"s explicit and ensured 2013-10-04 21:35:29 +00:00
CommandObjectRegister.h
CommandObjectSettings.cpp Add OptionParser.h 2013-09-05 16:42:23 +00:00
CommandObjectSettings.h Make raw & parsed commands subclasses of CommandObject rather than having the raw version implement an 2012-06-08 21:56:10 +00:00
CommandObjectSource.cpp Add OptionParser.h 2013-09-05 16:42:23 +00:00
CommandObjectSource.h Fix GetRepeatCommand so it works with multi-word commands. 2010-07-07 03:36:20 +00:00
CommandObjectSyntax.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
CommandObjectSyntax.h Make raw & parsed commands subclasses of CommandObject rather than having the raw version implement an 2012-06-08 21:56:10 +00:00
CommandObjectTarget.cpp Added Iterable, a class that vends standard C++ 2013-11-06 19:28:40 +00:00
CommandObjectTarget.h
CommandObjectThread.cpp Change SBThread::GetExtendedBacktrace to 2013-11-12 23:33:32 +00:00
CommandObjectThread.h Centralized a lot of the status information for processes, 2011-04-18 08:33:37 +00:00
CommandObjectType.cpp <rdar://problem/11778815> 2013-10-08 19:03:22 +00:00
CommandObjectType.h Fixed the Xcode project building of LLVM to be a bit more user friendly: 2011-11-04 03:34:56 +00:00
CommandObjectVersion.cpp Huge change to clean up types. 2013-07-11 22:46:58 +00:00
CommandObjectVersion.h Huge change to clean up types. 2013-07-11 22:46:58 +00:00
CommandObjectWatchpoint.cpp This patch does a couple of things. 2013-11-07 00:11:47 +00:00
CommandObjectWatchpoint.h Use the "last created watchpoint" rather than asserting on watchpoint commands passing no watchpoint ID. 2013-07-02 02:09:46 +00:00
CommandObjectWatchpointCommand.cpp Add OptionParser.h 2013-09-05 16:42:23 +00:00
CommandObjectWatchpointCommand.h rdar://problem/11457143 [ER] need "watchpoint command ..." 2012-08-09 23:09:42 +00:00
Makefile Fix a few more clang (3.2) warnings on Linux: 2012-12-07 22:21:08 +00:00