summaryrefslogtreecommitdiffstats
path: root/lldb/source/Commands/CommandObjectAdd.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lldb/source/Commands/CommandObjectAdd.cpp')
-rw-r--r--lldb/source/Commands/CommandObjectAdd.cpp51
1 files changed, 51 insertions, 0 deletions
diff --git a/lldb/source/Commands/CommandObjectAdd.cpp b/lldb/source/Commands/CommandObjectAdd.cpp
new file mode 100644
index 00000000000..cd1d02d22ff
--- /dev/null
+++ b/lldb/source/Commands/CommandObjectAdd.cpp
@@ -0,0 +1,51 @@
+//===-- CommandObjectAdd.cpp ------------------------------------*- C++ -*-===//
+//
+// The LLVM Compiler Infrastructure
+//
+// This file is distributed under the University of Illinois Open Source
+// License. See LICENSE.TXT for details.
+//
+//===----------------------------------------------------------------------===//
+
+#include "CommandObjectAdd.h"
+
+// C Includes
+// C++ Includes
+// Other libraries and framework includes
+// Project includes
+#include "lldb/Interpreter/CommandInterpreter.h"
+#include "lldb/Core/Options.h"
+#include "lldb/Interpreter/CommandReturnObject.h"
+
+using namespace lldb;
+using namespace lldb_private;
+
+//-------------------------------------------------------------------------
+// CommandObjectAdd
+//-------------------------------------------------------------------------
+
+CommandObjectAdd::CommandObjectAdd () :
+ CommandObject ("add",
+ "Allows the user to add a new command/function pair to the debugger's dictionary.",
+ "add <new-command-name> <script-function-name>")
+{
+}
+
+CommandObjectAdd::~CommandObjectAdd()
+{
+}
+
+
+bool
+CommandObjectAdd::Execute
+(
+ Args& command,
+ CommandContext *context,
+ CommandInterpreter *interpreter,
+ CommandReturnObject &result
+)
+{
+ result.AppendMessage ("This function has not been implemented yet.");
+ result.SetStatus (eReturnStatusSuccessFinishNoResult);
+ return result.Succeeded();
+}
OpenPOWER on IntegriCloud