teak-llvm/lldb/source/Plugins/ScriptInterpreter/Python
Raphael Isemann 4d51a90297 Get rid of the C-string parameter in DoExecute
Summary:
This patch gets rid of the C-string parameter in the RawCommandObject::DoExecute function,
making the code simpler and less memory unsafe.

There seems to be a assumption in some command objects that this parameter could be a nullptr,
but from what I can see the rest of the API doesn't actually allow this (and other command
objects and related code pieces dereference this parameter without any checks).

Especially CommandObjectRegexCommand has error handling code for a nullptr that is now gone.

Reviewers: davide, jingham, teemperor

Reviewed By: teemperor

Subscribers: jingham, lldb-commits

Differential Revision: https://reviews.llvm.org/D49207

llvm-svn: 336955
2018-07-12 22:28:52 +00:00
..
CMakeLists.txt ScriptInterpreterPython cleanup 2018-06-21 14:09:15 +00:00
lldb-python.h Partially revert r335236 2018-06-21 17:36:32 +00:00
PythonDataObjects.cpp Partially revert r335236 2018-06-21 17:36:32 +00:00
PythonDataObjects.h Partially revert r335236 2018-06-21 17:36:32 +00:00
PythonExceptionState.cpp Partially revert r335236 2018-06-21 17:36:32 +00:00
PythonExceptionState.h Partially revert r335236 2018-06-21 17:36:32 +00:00
ScriptInterpreterPython.cpp Get rid of the C-string parameter in DoExecute 2018-07-12 22:28:52 +00:00
ScriptInterpreterPython.h Get rid of the C-string parameter in DoExecute 2018-07-12 22:28:52 +00:00