merge lldb-platform-work branch (and assorted fixes) into trunk

Programming / Debugging / LLDB - Daniel Malea [intel.com] - 26 August 2013 18:57 UTC

Summary: This merge brings in the improved 'platform' command that knows how to interface with remote machines; that is, query OS/kernel information, push and pull files, run shell commands, etc... and implementation for the new communication packets that back that interface, at least on Darwin based operating systems via the POSIXPlatform class. Linux support is coming soon.

Verified the test suite runs cleanly on Linux (x86_64), build OK on Mac OS X Mountain Lion.

Additional improvements (not in the source SVN branch 'lldb-platform-work'):- cmake build scripts for lldb-platform- cleanup test suite- documentation stub for qPlatform_RunCommand- use log class instead of printf() directly
- reverted work-in-progress-looking changes from test/types/TestAbstract.py that work towards running the test suite remotely.- add new logging category 'platform'

Reviewers: Matt Kopec, Greg Clayton

Review: http://llvm-reviews.chandlerc.com/D1493

c9a866f merge lldb-platform-work branch (and assorted fixes) into trunk
docs/lldb-gdb-remote.txt | 134 ++
include/lldb/Core/StreamGDBRemote.h | 54 +
include/lldb/Host/File.h | 53 +-
include/lldb/Host/FileSpec.h | 15 +
include/lldb/Host/Host.h | 40 +
include/lldb/Interpreter/Options.h | 10 +
include/lldb/Interpreter/ScriptInterpreter.h | 1 +
include/lldb/Target/Platform.h | 295 +++-
include/lldb/Target/Process.h | 6 +
include/lldb/lldb-enumerations.h | 3 +
include/lldb/lldb-forward.h | 3 +
include/lldb/lldb-private-log.h | 1 +
lib/Makefile | 3 +-
lldb.xcodeproj/project.pbxproj | 94 ++
scripts/Python/python-wrapper.swig | 13 +
source/API/SBValue.cpp | 128 +-
source/CMakeLists.txt | 1 +
source/Commands/CommandObjectPlatform.cpp | 1744 +++++++++++++++++---
source/Commands/CommandObjectTarget.cpp | 73 +-
source/Core/CMakeLists.txt | 1 +
source/Core/Error.cpp | 2 +-
source/Core/StreamGDBRemote.cpp | 54 +
source/Host/common/File.cpp | 109 ++
source/Host/common/FileSpec.cpp | 135 ++
source/Host/common/Host.cpp | 172 +-
source/Host/freebsd/Host.cpp | 315 +++-
source/Host/macosx/Host.mm | 7 +
source/Interpreter/CommandObject.cpp | 3 +
source/Interpreter/Options.cpp | 12 +
source/Interpreter/ScriptInterpreterPython.cpp | 15 +-
source/Plugins/Platform/CMakeLists.txt | 1 +
.../Plugins/Platform/FreeBSD/PlatformFreeBSD.cpp | 55 +-
source/Plugins/Platform/FreeBSD/PlatformFreeBSD.h | 8 +
source/Plugins/Platform/MacOSX/PlatformDarwin.cpp | 192 ++-
source/Plugins/Platform/MacOSX/PlatformDarwin.h | 14 +-
source/Plugins/Platform/MacOSX/PlatformMacOSX.cpp | 76 +-
source/Plugins/Platform/MacOSX/PlatformMacOSX.h | 21 +-
.../Plugins/Platform/MacOSX/PlatformRemoteiOS.cpp | 27 +-
source/Plugins/Platform/MacOSX/PlatformRemoteiOS.h | 8 -
.../Platform/MacOSX/PlatformiOSSimulator.cpp | 8 +-
.../Plugins/Platform/MacOSX/PlatformiOSSimulator.h | 6 +-
source/Plugins/Platform/Makefile | 10 +-
source/Plugins/Platform/POSIX/CMakeLists.txt | 5 +
source/Plugins/Platform/POSIX/Makefile | 14 +
source/Plugins/Platform/POSIX/PlatformPOSIX.cpp | 541 ++++++
source/Plugins/Platform/POSIX/PlatformPOSIX.h | 111 ++
.../gdb-server/PlatformRemoteGDBServer.cpp | 110 +-
.../Platform/gdb-server/PlatformRemoteGDBServer.h | 52 +
source/Plugins/Process/FreeBSD/ProcessFreeBSD.cpp | 27 +-
source/Plugins/Process/POSIX/ProcessPOSIX.cpp | 4 +-
.../Process/gdb-remote/GDBRemoteCommunication.cpp | 4 +
.../gdb-remote/GDBRemoteCommunicationClient.cpp | 369 ++++-
.../gdb-remote/GDBRemoteCommunicationClient.h | 58 +-
.../gdb-remote/GDBRemoteCommunicationServer.cpp | 503 +++++-
.../gdb-remote/GDBRemoteCommunicationServer.h | 75 +-
source/Target/Platform.cpp | 269 ++-
source/Utility/StringExtractor.cpp | 78 +-
source/Utility/StringExtractor.h | 13 +
source/Utility/StringExtractorGDBRemote.cpp | 45 +-
source/Utility/StringExtractorGDBRemote.h | 19 +-
source/lldb-log.cpp | 3 +
source/lldb.cpp | 1 +
.../TestPublicAPIHeaders.py | 3 +
test/api/multithreaded/TestMultithreaded.py | 9 +-
test/dotest.py | 22 +-
.../abbreviation/TestAbbreviations.py | 5 +-
test/functionalities/conditional_break/.lldb | 2 +-
.../conditional_break/TestConditionalBreak.py | 4 +
.../data-formatter-objc/TestDataFormatterObjC.py | 2 +-
.../inferior-changed/TestInferiorChanged.py | 7 +-
test/functionalities/load_unload/TestLoadUnload.py | 5 +
.../process_launch/TestProcessLaunch.py | 2 +
.../hello_watchlocation/TestWatchLocation.py | 8 +-
.../hello_watchpoint/TestMyFirstWatchpoint.py | 7 +-
test/lang/c/blocks/TestBlocks.py | 2 +-
test/lldbtest.py | 74 +
test/macosx/universal/TestUniversal.py | 3 +-
test/python_api/hello_world/TestHelloWorld.py | 4 +
test/python_api/process/TestProcessAPI.py | 4 -
test/python_api/target/TestTargetAPI.py | 2 +-
test/settings/TestSettings.py | 3 +
tools/CMakeLists.txt | 2 +-
.../debugserver.xcodeproj/project.pbxproj | 2 +-
tools/lldb-platform/CMakeLists.txt | 14 +
tools/lldb-platform/lldb-platform.cpp | 109 +-
85 files changed, 6025 insertions(+), 493 deletions(-)

Upstream: github.com


  • Share