Home

Merging the iohandler branch back into main.

Press ? to show keyboard shortcuts.
Committed
gclaytonJan 27 2014, 3:43 PM
Parents
rL200262: PGO branch weight: keep halving the weights until they can fit into
Branches
Unknown
Tags
Unknown
Subscribers
None
Projects
None
Description

Merging the iohandler branch back into main.

The many many benefits include:
1 - Input/Output/Error streams are now handled as real streams not a push style input
2 - auto completion in python embedded interpreter
3 - multi-line input for "script" and "expression" commands now allow you to edit previous/next lines using up and down arrow keys and this makes multi-line input actually a viable thing to use
4 - it is now possible to use curses to drive LLDB (please try the "gui" command)

We will need to deal with and fix any buildbot failures and tests and arise now that input/output and error are correctly hooked up in all cases.

Changes (117)

Very Large Commit

This commit is very large. Load each file individually.
HistoryBrowseChangePath
HistoryBrowseModifiedlldb/trunk/
HistoryBrowseModifiedlldb/trunk/CMakeLists.txt
HistoryBrowseModifiedlldb/trunk/include/lldb/API/LLDB.h
HistoryBrowseModifiedlldb/trunk/include/lldb/API/SBCommandInterpreter.h
HistoryBrowseModifiedlldb/trunk/include/lldb/API/SBDebugger.h
HistoryBrowseModifiedlldb/trunk/include/lldb/API/SBDefines.h
HistoryBrowseModifiedlldb/trunk/include/lldb/API/SBError.h
HistoryBrowseDeletedlldb/trunk/include/lldb/API/SBInputReader.h
HistoryBrowseModifiedlldb/trunk/include/lldb/Core/Debugger.h
HistoryBrowseModifiedlldb/trunk/include/lldb/Core/Disassembler.h
HistoryBrowseCopied Herelldb/trunk/include/lldb/Core/IOHandler.h
HistoryBrowseDeletedlldb/trunk/include/lldb/Core/InputReader.h
HistoryBrowseDeletedlldb/trunk/include/lldb/Core/InputReaderEZ.h
HistoryBrowseDeletedlldb/trunk/include/lldb/Core/InputReaderStack.h
HistoryBrowseModifiedlldb/trunk/include/lldb/Core/SourceManager.h
HistoryBrowseModifiedlldb/trunk/include/lldb/Core/StreamAsynchronousIO.h
HistoryBrowseModifiedlldb/trunk/include/lldb/Core/StringList.h
HistoryBrowseModifiedlldb/trunk/include/lldb/Core/ValueObjectList.h
HistoryBrowseCopied Herelldb/trunk/include/lldb/Host/Editline.h
HistoryBrowseModifiedlldb/trunk/include/lldb/Host/File.h
HistoryBrowseModifiedlldb/trunk/include/lldb/Interpreter/CommandInterpreter.h
HistoryBrowseModifiedlldb/trunk/include/lldb/Interpreter/PythonDataObjects.h
HistoryBrowseModifiedlldb/trunk/include/lldb/Interpreter/ScriptInterpreter.h
HistoryBrowseModifiedlldb/trunk/include/lldb/Interpreter/ScriptInterpreterPython.h
HistoryBrowseModifiedlldb/trunk/include/lldb/Symbol/Function.h
HistoryBrowseModifiedlldb/trunk/include/lldb/Symbol/Symbol.h
HistoryBrowseModifiedlldb/trunk/include/lldb/Target/ExecutionContext.h
HistoryBrowseModifiedlldb/trunk/include/lldb/Target/Process.h
HistoryBrowseModifiedlldb/trunk/include/lldb/Target/Target.h
HistoryBrowseModifiedlldb/trunk/include/lldb/Target/Thread.h
HistoryBrowseModifiedlldb/trunk/include/lldb/lldb-forward.h
HistoryBrowseModifiedlldb/trunk/include/lldb/lldb-private-enumerations.h
HistoryBrowseModifiedlldb/trunk/lib/Makefile
HistoryBrowseModifiedlldb/trunk/lldb.xcodeproj/project.pbxproj
HistoryBrowseModifiedlldb/trunk/scripts/Python/build-swig-Python.sh
HistoryBrowseModifiedlldb/trunk/scripts/Python/interface/SBCommandInterpreter.i
HistoryBrowseModifiedlldb/trunk/scripts/Python/interface/SBDebugger.i
HistoryBrowseDeletedlldb/trunk/scripts/Python/interface/SBInputReader.i
HistoryBrowseModifiedlldb/trunk/scripts/Python/python-extensions.swig
HistoryBrowseModifiedlldb/trunk/scripts/Python/python-swigsafecast.swig
HistoryBrowseModifiedlldb/trunk/scripts/Python/python-typemaps.swig
HistoryBrowseModifiedlldb/trunk/scripts/Python/python-wrapper.swig
HistoryBrowseModifiedlldb/trunk/scripts/lldb.swig
HistoryBrowseModifiedlldb/trunk/source/API/CMakeLists.txt
HistoryBrowseModifiedlldb/trunk/source/API/SBCommandInterpreter.cpp
HistoryBrowseModifiedlldb/trunk/source/API/SBDebugger.cpp
HistoryBrowseDeletedlldb/trunk/source/API/SBInputReader.cpp
HistoryBrowseModifiedlldb/trunk/source/Commands/CMakeLists.txt
HistoryBrowseModifiedlldb/trunk/source/Commands/CommandObjectBreakpointCommand.cpp
HistoryBrowseModifiedlldb/trunk/source/Commands/CommandObjectBreakpointCommand.h
HistoryBrowseModifiedlldb/trunk/source/Commands/CommandObjectCommands.cpp
HistoryBrowseModifiedlldb/trunk/source/Commands/CommandObjectExpression.cpp
HistoryBrowseModifiedlldb/trunk/source/Commands/CommandObjectExpression.h
HistoryBrowseCopied Herelldb/trunk/source/Commands/CommandObjectGUI.cpp
HistoryBrowseCopied Herelldb/trunk/source/Commands/CommandObjectGUI.h
HistoryBrowseModifiedlldb/trunk/source/Commands/CommandObjectProcess.cpp
HistoryBrowseModifiedlldb/trunk/source/Commands/CommandObjectQuit.cpp
HistoryBrowseModifiedlldb/trunk/source/Commands/CommandObjectTarget.cpp
HistoryBrowseModifiedlldb/trunk/source/Commands/CommandObjectType.cpp
HistoryBrowseModifiedlldb/trunk/source/Commands/CommandObjectWatchpointCommand.cpp
HistoryBrowseModifiedlldb/trunk/source/Commands/CommandObjectWatchpointCommand.h
HistoryBrowseModifiedlldb/trunk/source/Core/Broadcaster.cpp
HistoryBrowseModifiedlldb/trunk/source/Core/CMakeLists.txt
HistoryBrowseModifiedlldb/trunk/source/Core/Debugger.cpp
HistoryBrowseModifiedlldb/trunk/source/Core/Disassembler.cpp
HistoryBrowseCopied Herelldb/trunk/source/Core/IOHandler.cpp
HistoryBrowseDeletedlldb/trunk/source/Core/InputReader.cpp
HistoryBrowseDeletedlldb/trunk/source/Core/InputReaderEZ.cpp
HistoryBrowseDeletedlldb/trunk/source/Core/InputReaderStack.cpp
HistoryBrowseModifiedlldb/trunk/source/Core/SourceManager.cpp
HistoryBrowseModifiedlldb/trunk/source/Core/StreamAsynchronousIO.cpp
HistoryBrowseModifiedlldb/trunk/source/Core/StringList.cpp
HistoryBrowseModifiedlldb/trunk/source/Core/ValueObject.cpp
HistoryBrowseModifiedlldb/trunk/source/Core/ValueObjectChild.cpp
HistoryBrowseModifiedlldb/trunk/source/DataFormatters/LibCxxUnorderedMap.cpp
HistoryBrowseModifiedlldb/trunk/source/Expression/ClangExpressionParser.cpp
HistoryBrowseModifiedlldb/trunk/source/Host/common/CMakeLists.txt
HistoryBrowseCopied Herelldb/trunk/source/Host/common/Editline.cpp
HistoryBrowseModifiedlldb/trunk/source/Host/common/File.cpp
HistoryBrowseModifiedlldb/trunk/source/Interpreter/CommandInterpreter.cpp
HistoryBrowseModifiedlldb/trunk/source/Interpreter/PythonDataObjects.cpp
HistoryBrowseModifiedlldb/trunk/source/Interpreter/ScriptInterpreterNone.cpp
HistoryBrowseModifiedlldb/trunk/source/Interpreter/ScriptInterpreterPython.cpp
HistoryBrowseModifiedlldb/trunk/source/Interpreter/embedded_interpreter.py
HistoryBrowseModifiedlldb/trunk/source/Plugins/DynamicLoader/Darwin-Kernel/DynamicLoaderDarwinKernel.cpp
HistoryBrowseModifiedlldb/trunk/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/AppleObjCTrampolineHandler.cpp
HistoryBrowseModifiedlldb/trunk/source/Plugins/Platform/MacOSX/PlatformDarwin.cpp
HistoryBrowseModifiedlldb/trunk/source/Plugins/Process/MacOSX-Kernel/ProcessKDP.h
HistoryBrowseModifiedlldb/trunk/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp
HistoryBrowseModifiedlldb/trunk/source/Plugins/Process/gdb-remote/ProcessGDBRemote.h
HistoryBrowseModifiedlldb/trunk/source/Symbol/ClangASTType.cpp
HistoryBrowseModifiedlldb/trunk/source/Symbol/Function.cpp
HistoryBrowseModifiedlldb/trunk/source/Symbol/Symbol.cpp
HistoryBrowseModifiedlldb/trunk/source/Target/ExecutionContext.cpp
HistoryBrowseModifiedlldb/trunk/source/Target/Platform.cpp
HistoryBrowseModifiedlldb/trunk/source/Target/Process.cpp
HistoryBrowseModifiedlldb/trunk/source/Target/Target.cpp
HistoryBrowseModifiedlldb/trunk/source/Target/Thread.cpp
HistoryBrowseModifiedlldb/trunk/source/Target/ThreadPlanTracer.cpp
HistoryBrowseModifiedlldb/trunk/source/lldb.cpp
HistoryBrowseModifiedlldb/trunk/test/functionalities/command_regex/TestCommandRegex.py
HistoryBrowseModifiedlldb/trunk/test/functionalities/command_script/import/rdar-12586188/TestRdar12586188.py
HistoryBrowseModifiedlldb/trunk/test/functionalities/command_source/TestCommandSource.py
HistoryBrowseModifiedlldb/trunk/test/functionalities/conditional_break/.lldb
HistoryBrowseModifiedlldb/trunk/test/functionalities/conditional_break/conditional_break.py
HistoryBrowseModifiedlldb/trunk/test/python_api/default-constructor/TestDefaultConstructorForAPIObjects.py
HistoryBrowseModifiedlldb/trunk/test/python_api/default-constructor/sb_debugger.py
HistoryBrowseDeletedlldb/trunk/test/python_api/default-constructor/sb_inputreader.py
HistoryBrowseDeletedlldb/trunk/test/python_api/input_reader/
HistoryBrowseDeletedlldb/trunk/test/python_api/input_reader/Makefile
HistoryBrowseDeletedlldb/trunk/test/python_api/input_reader/TestInputReaderCallback.py
HistoryBrowseDeletedlldb/trunk/test/python_api/input_reader/main.c
HistoryBrowseModifiedlldb/trunk/tools/driver/CMakeLists.txt
HistoryBrowseModifiedlldb/trunk/tools/driver/Driver.cpp
HistoryBrowseModifiedlldb/trunk/tools/driver/Driver.h
HistoryBrowseDeletedlldb/trunk/tools/driver/IOChannel.cpp
HistoryBrowseDeletedlldb/trunk/tools/driver/IOChannel.h

rL200263

lldb/trunk/CMakeLists.txt

lldb/trunk/include/lldb/API/LLDB.h

lldb/trunk/include/lldb/API/SBCommandInterpreter.h

lldb/trunk/include/lldb/API/SBDebugger.h

lldb/trunk/include/lldb/API/SBDefines.h

lldb/trunk/include/lldb/API/SBError.h

lldb/trunk/include/lldb/API/SBInputReader.h

lldb/trunk/include/lldb/Core/Debugger.h

lldb/trunk/include/lldb/Core/Disassembler.h

lldb/trunk/include/lldb/Core/IOHandler.h

lldb/trunk/include/lldb/Core/InputReader.h

lldb/trunk/include/lldb/Core/InputReaderEZ.h

lldb/trunk/include/lldb/Core/InputReaderStack.h

lldb/trunk/include/lldb/Core/SourceManager.h

lldb/trunk/include/lldb/Core/StreamAsynchronousIO.h

lldb/trunk/include/lldb/Core/StringList.h

lldb/trunk/include/lldb/Core/ValueObjectList.h

lldb/trunk/include/lldb/Host/Editline.h

lldb/trunk/include/lldb/Host/File.h

lldb/trunk/include/lldb/Interpreter/CommandInterpreter.h

lldb/trunk/include/lldb/Interpreter/PythonDataObjects.h

lldb/trunk/include/lldb/Interpreter/ScriptInterpreter.h

lldb/trunk/include/lldb/Interpreter/ScriptInterpreterPython.h

lldb/trunk/include/lldb/Symbol/Function.h

lldb/trunk/include/lldb/Symbol/Symbol.h

lldb/trunk/include/lldb/Target/ExecutionContext.h

lldb/trunk/include/lldb/Target/Process.h

lldb/trunk/include/lldb/Target/Target.h

lldb/trunk/include/lldb/Target/Thread.h

lldb/trunk/include/lldb/lldb-forward.h

lldb/trunk/include/lldb/lldb-private-enumerations.h

lldb/trunk/lib/Makefile

lldb/trunk/lldb.xcodeproj/project.pbxproj

lldb/trunk/scripts/Python/build-swig-Python.sh

lldb/trunk/scripts/Python/interface/SBCommandInterpreter.i

lldb/trunk/scripts/Python/interface/SBDebugger.i

lldb/trunk/scripts/Python/interface/SBInputReader.i

lldb/trunk/scripts/Python/python-extensions.swig

lldb/trunk/scripts/Python/python-swigsafecast.swig

lldb/trunk/scripts/Python/python-typemaps.swig

lldb/trunk/scripts/Python/python-wrapper.swig

lldb/trunk/scripts/lldb.swig

lldb/trunk/source/API/CMakeLists.txt

lldb/trunk/source/API/SBCommandInterpreter.cpp

lldb/trunk/source/API/SBDebugger.cpp

lldb/trunk/source/API/SBInputReader.cpp

lldb/trunk/source/Commands/CMakeLists.txt

lldb/trunk/source/Commands/CommandObjectBreakpointCommand.cpp

lldb/trunk/source/Commands/CommandObjectBreakpointCommand.h

lldb/trunk/source/Commands/CommandObjectCommands.cpp

lldb/trunk/source/Commands/CommandObjectExpression.cpp

lldb/trunk/source/Commands/CommandObjectExpression.h

lldb/trunk/source/Commands/CommandObjectGUI.cpp

lldb/trunk/source/Commands/CommandObjectGUI.h

lldb/trunk/source/Commands/CommandObjectProcess.cpp

lldb/trunk/source/Commands/CommandObjectQuit.cpp

lldb/trunk/source/Commands/CommandObjectTarget.cpp

lldb/trunk/source/Commands/CommandObjectType.cpp

lldb/trunk/source/Commands/CommandObjectWatchpointCommand.cpp

lldb/trunk/source/Commands/CommandObjectWatchpointCommand.h

lldb/trunk/source/Core/Broadcaster.cpp

lldb/trunk/source/Core/CMakeLists.txt

lldb/trunk/source/Core/Debugger.cpp

lldb/trunk/source/Core/Disassembler.cpp

lldb/trunk/source/Core/IOHandler.cpp

lldb/trunk/source/Core/InputReader.cpp

lldb/trunk/source/Core/InputReaderEZ.cpp

lldb/trunk/source/Core/InputReaderStack.cpp

lldb/trunk/source/Core/SourceManager.cpp

lldb/trunk/source/Core/StreamAsynchronousIO.cpp

lldb/trunk/source/Core/StringList.cpp

lldb/trunk/source/Core/ValueObject.cpp

lldb/trunk/source/Core/ValueObjectChild.cpp

lldb/trunk/source/DataFormatters/LibCxxUnorderedMap.cpp

lldb/trunk/source/Expression/ClangExpressionParser.cpp

lldb/trunk/source/Host/common/CMakeLists.txt

lldb/trunk/source/Host/common/Editline.cpp

lldb/trunk/source/Host/common/File.cpp

lldb/trunk/source/Interpreter/CommandInterpreter.cpp

lldb/trunk/source/Interpreter/PythonDataObjects.cpp

lldb/trunk/source/Interpreter/ScriptInterpreterNone.cpp

lldb/trunk/source/Interpreter/ScriptInterpreterPython.cpp

lldb/trunk/source/Interpreter/embedded_interpreter.py

lldb/trunk/source/Plugins/DynamicLoader/Darwin-Kernel/DynamicLoaderDarwinKernel.cpp

lldb/trunk/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/AppleObjCTrampolineHandler.cpp

lldb/trunk/source/Plugins/Platform/MacOSX/PlatformDarwin.cpp

lldb/trunk/source/Plugins/Process/MacOSX-Kernel/ProcessKDP.h

lldb/trunk/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp

lldb/trunk/source/Plugins/Process/gdb-remote/ProcessGDBRemote.h

lldb/trunk/source/Symbol/ClangASTType.cpp

lldb/trunk/source/Symbol/Function.cpp

lldb/trunk/source/Symbol/Symbol.cpp

lldb/trunk/source/Target/ExecutionContext.cpp

lldb/trunk/source/Target/Platform.cpp

lldb/trunk/source/Target/Process.cpp

lldb/trunk/source/Target/Target.cpp

lldb/trunk/source/Target/Thread.cpp

lldb/trunk/source/Target/ThreadPlanTracer.cpp

lldb/trunk/source/lldb.cpp

lldb/trunk/test/functionalities/command_regex/TestCommandRegex.py

lldb/trunk/test/functionalities/command_script/import/rdar-12586188/TestRdar12586188.py

lldb/trunk/test/functionalities/command_source/TestCommandSource.py

lldb/trunk/test/functionalities/conditional_break/.lldb

lldb/trunk/test/functionalities/conditional_break/conditional_break.py

lldb/trunk/test/python_api/default-constructor/TestDefaultConstructorForAPIObjects.py

lldb/trunk/test/python_api/default-constructor/sb_debugger.py

lldb/trunk/test/python_api/default-constructor/sb_inputreader.py

lldb/trunk/test/python_api/input_reader/

lldb/trunk/test/python_api/input_reader/Makefile

lldb/trunk/test/python_api/input_reader/TestInputReaderCallback.py

lldb/trunk/test/python_api/input_reader/main.c

lldb/trunk/tools/driver/CMakeLists.txt

lldb/trunk/tools/driver/Driver.cpp

lldb/trunk/tools/driver/Driver.h

lldb/trunk/tools/driver/IOChannel.cpp

lldb/trunk/tools/driver/IOChannel.h

Add Comment