Go to file
Abhishek Aggarwal f605c198c9 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
2016-07-29 07:46:32 +00:00
clang [Typo police] s/proccess/process/, s/auxiliary/auxilliary/. 2016-07-29 05:26:58 +00:00
clang-tools-extra [Typo police] s/proccess/process/, s/auxiliary/auxilliary/. 2016-07-29 05:26:58 +00:00
compiler-rt [compiler-rt][XRay] Address follow-up comments to initial interface and initialisation code 2016-07-29 07:11:58 +00:00
debuginfo-tests New round of fixes for "Always compile debuginfo-tests for the host triple" 2014-10-18 23:47:59 +00:00
libclc Make min follow the OCL 1.0 specs 2016-07-25 22:36:22 +00:00
libcxx Add a bunch of noexcepts to char_traits and string_view. 2016-07-28 04:52:02 +00:00
libcxxabi Attempt to bring peace to -Werror buildbots. 2016-07-19 20:35:09 +00:00
libunwind [libunwind][ARM] Add support for Thumb1 targets 2016-07-25 09:21:56 +00:00
lld Remove `continue` at end of a for-loop. 2016-07-29 06:21:06 +00:00
lldb Improve code of loading plugins that provide cmnds 2016-07-29 07:46:32 +00:00
llgo [llgo] add llgo source path to LLVM_GO_PACKAGES 2016-07-27 03:01:00 +00:00
llvm [AVX512] Mark EVEX VMOVSSrm and VMOVSDrm as canFoldAsLoad and isReMaterializable. 2016-07-29 06:06:04 +00:00
openmp Replace enum types in variadic functions by build-in types. 2016-07-22 16:05:35 +00:00
parallel-libs Add .clang-format to parallel-libs 2016-07-20 17:49:55 +00:00
polly Add missing REQUIRES line 2016-07-28 07:08:34 +00:00