Fix GetRepeatCommand so it works with multi-word commands.
Move the "source", "alias", and "unalias" commands to "commands *".
Move "source-file" to "source list".
Added a "source info" command but it isn't implemented yet.
git-svn-id: https://llvm.org/svn/llvm-project/llvdb/trunk@107751 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/source/Commands/CommandObjectSource.h b/source/Commands/CommandObjectSource.h
index 8bc1ae5..0daef13 100644
--- a/source/Commands/CommandObjectSource.h
+++ b/source/Commands/CommandObjectSource.h
@@ -1,4 +1,4 @@
-//===-- CommandObjectSource.h -----------------------------------*- C++ -*-===//
+//===-- CommandObjectSource.h.h -----------------------------------*- C++ -*-===//
//
// The LLVM Compiler Infrastructure
//
@@ -15,33 +15,26 @@
// Other libraries and framework includes
// Project includes
#include "lldb/Interpreter/CommandObject.h"
+#include "lldb/Interpreter/CommandObjectMultiword.h"
#include "lldb/Core/STLUtils.h"
namespace lldb_private {
//-------------------------------------------------------------------------
-// CommandObjectSource
+// CommandObjectMultiwordSource
//-------------------------------------------------------------------------
-class CommandObjectSource : public CommandObject
+class CommandObjectMultiwordSource : public CommandObjectMultiword
{
public:
- CommandObjectSource ();
+ CommandObjectMultiwordSource (CommandInterpreter &interpreter);
virtual
- ~CommandObjectSource ();
-
- STLStringArray &
- GetCommands ();
-
- virtual bool
- Execute (CommandInterpreter &interpreter,
- Args& command,
- CommandReturnObject &result);
+ ~CommandObjectMultiwordSource ();
};
} // namespace lldb_private
-#endif // liblldb_CommandObjectSource_h_
+#endif // liblldb_CommandObjectSource.h_h_