From 223383ed6c77205c84e2061881206e5379f6442f Mon Sep 17 00:00:00 2001 From: Enrico Granata Date: Tue, 16 Aug 2011 23:24:13 +0000 Subject: Changes to Python commands: - They now have an SBCommandReturnObject instead of an SBStream as third argument - The class CommandObjectPythonFunction has been merged into CommandObjectCommands.cpp - The command to manage them is now: command script with subcommands add, list, delete, clear command alias is returned to its previous functionality - Python commands are now part of an user dictionary, instead of being seen as aliases llvm-svn: 137785 --- lldb/source/Commands/CommandObjectPythonFunction.h | 62 ---------------------- 1 file changed, 62 deletions(-) delete mode 100644 lldb/source/Commands/CommandObjectPythonFunction.h (limited to 'lldb/source/Commands/CommandObjectPythonFunction.h') diff --git a/lldb/source/Commands/CommandObjectPythonFunction.h b/lldb/source/Commands/CommandObjectPythonFunction.h deleted file mode 100644 index 4af857dccd5..00000000000 --- a/lldb/source/Commands/CommandObjectPythonFunction.h +++ /dev/null @@ -1,62 +0,0 @@ -//===-- CommandObjectPythonFunction.h -----------------------------*- C++ -*-===// -// -// The LLVM Compiler Infrastructure -// -// This file is distributed under the University of Illinois Open Source -// License. See LICENSE.TXT for details. -// -//===----------------------------------------------------------------------===// - -#ifndef liblldb_CommandObjectPythonFunction_h_ -#define liblldb_CommandObjectPythonFunction_h_ - -// C Includes -// C++ Includes -// Other libraries and framework includes -// Project includes -#include "lldb/Interpreter/CommandObject.h" - -namespace lldb_private { - -//------------------------------------------------------------------------- -// CommandObjectApropos -//------------------------------------------------------------------------- - -class CommandObjectPythonFunction : public CommandObject -{ -private: - std::string m_function_name; - -public: - - CommandObjectPythonFunction (CommandInterpreter &interpreter, - std::string name, - std::string funct); - - virtual - ~CommandObjectPythonFunction (); - - virtual bool - ExecuteRawCommandString (const char *raw_command_line, CommandReturnObject &result); - - virtual bool - WantsRawCommandString () - { - return true; - } - - bool - Execute (Args& command, - CommandReturnObject &result) - { - std::string cmd_string; - command.GetCommandString(cmd_string); - return ExecuteRawCommandString(cmd_string.c_str(), result); - } - - -}; - -} // namespace lldb_private - -#endif // liblldb_CommandObjectPythonFunction_h_ -- cgit v1.2.3