aboutsummaryrefslogtreecommitdiff
path: root/lldb/source/Plugins/Process/gdb-remote/GDBRemoteClientBase.cpp
diff options
context:
space:
mode:
authorAbhishek Aggarwal <abhishek.a.aggarwal@intel.com>2016-07-29 07:46:32 +0000
committerAbhishek Aggarwal <abhishek.a.aggarwal@intel.com>2016-07-29 07:46:32 +0000
commitf605c198c9ae45951dff98224d92593c1596186b (patch)
tree6c0f1629bf77cc25aa9c9d89758723af1e8ce4bf /lldb/source/Plugins/Process/gdb-remote/GDBRemoteClientBase.cpp
parent17a586e6de8ac3bf5bd49038564662d6a35496a4 (diff)
downloadllvm-f605c198c9ae45951dff98224d92593c1596186b.zip
llvm-f605c198c9ae45951dff98224d92593c1596186b.tar.gz
llvm-f605c198c9ae45951dff98224d92593c1596186b.tar.bz2
Improve code of loading plugins that provide cmnds
Summary: - Modified code that enables writing new user-defined commands and use them through LLDB CLI. Modifications are: -- Define the 'syntax' for each user-defined command --- Added an argument in SBCommandInterpreter::AddCommand() and SBCommand::AddCommand() API --- Allow passing syntax for each user-defined command --- Earlier, only 'help' could be defined and passed for commands -- Passed 'number of arguments' entered on CLI for user-defined commands --- Added an argument (number of options) in SBCommandPluginInterface::DoExecute() API to know the number of arguments passed for commands -- In CommandPluginInterfaceImplementation class: --- Make the data member m_backend a shared_ptr --- Avoids memory leaks of dynamically allocated SBCommandPluginInterface instances created in lldb::PluginInitialize() API Signed-off-by: Abhishek Aggarwal <abhishek.a.aggarwal@intel.com> Reviewers: jingham, granata.enrico, clayborg Subscribers: labath, lldb-commits Differential Revision: https://reviews.llvm.org/D22863 llvm-svn: 277125
Diffstat (limited to 'lldb/source/Plugins/Process/gdb-remote/GDBRemoteClientBase.cpp')
0 files changed, 0 insertions, 0 deletions