Debugger CLI: Start to imbue CliContext with life

This commit is contained in:
Ingo Weinhold
2012-07-23 23:52:45 +02:00
parent abbcb2caf5
commit d0ef75400b
5 changed files with 55 additions and 8 deletions
@@ -100,8 +100,6 @@ private:
CommandLineUserInterface::CommandLineUserInterface()
:
fTeam(NULL),
fListener(NULL),
fCommands(20, true),
fShowSemaphore(-1),
fShown(false),
@@ -127,8 +125,7 @@ CommandLineUserInterface::ID() const
status_t
CommandLineUserInterface::Init(Team* team, UserInterfaceListener* listener)
{
fTeam = team;
fListener = listener;
fContext.Init(team, listener);
status_t error = _RegisterCommands();
if (error != B_OK)
@@ -318,8 +315,7 @@ CommandLineUserInterface::_ExecuteCommand(int argc, const char* const* argv)
return;
}
CliContext context;
firstEntry->Command()->Execute(argc, argv, context);
firstEntry->Command()->Execute(argc, argv, fContext);
}