Removed couple of debugger commands that not yet working

This commit is contained in:
Nik Henson 2011-06-27 23:01:15 +00:00
parent eddc1df03a
commit efefc65ecf
2 changed files with 35 additions and 33 deletions

View file

@ -16,7 +16,6 @@ namespace Debugger
//
}
// TODO - tidy up this function - it is a mess!
void CConsoleDebugger::WaitCommand(CCPUDebug *cpu)
{
m_cpu = cpu;
@ -104,6 +103,7 @@ namespace Debugger
}
}
// TODO - tidy up this function - it is a mess!
bool CConsoleDebugger::ProcessToken(const char *token, const char *cmd)
{
UINT32 pc = m_cpu->pc;

View file

@ -31,44 +31,45 @@ namespace Debugger
bool CSupermodelDebugger::ProcessToken(const char *token, const char *cmd)
{
if (CheckToken(token, "les", "loademustate")) // loademustate FILENAME
{
// Parse arguments
token = strtok(NULL, " ");
if (token == NULL)
{
puts("Missing filename.");
return false;
}
// TODO - load/saving emu state not supported
//if (CheckToken(token, "les", "loademustate")) // loademustate FILENAME
//{
// // Parse arguments
// token = strtok(NULL, " ");
// if (token == NULL)
// {
// puts("Missing filename.");
// return false;
// }
if (LoadModel3State(token))
printf("Emulator state successfully loaded from <%s>\n", token);
else
printf("Unable to load emulator state from <%s>\n", token);
return false;
}
else if (CheckToken(token, "ses", "savestate")) // saveemustate FILENAME
{
// Parse arguments
token = strtok(NULL, " ");
if (token == NULL)
{
puts("Missing filename.");
return false;
}
// if (LoadModel3State(token))
// printf("Emulator state successfully loaded from <%s>\n", token);
// else
// printf("Unable to load emulator state from <%s>\n", token);
// return false;
//}
//else if (CheckToken(token, "ses", "savestate")) // saveemustate FILENAME
//{
// // Parse arguments
// token = strtok(NULL, " ");
// if (token == NULL)
// {
// puts("Missing filename.");
// return false;
// }
if (SaveModel3State(token))
printf("Emulator state successfully saved to <%s>\n", token);
else
printf("Unable to save emulator state to <%s>\n", token);
return false;
}
else if (CheckToken(token, "lip", "listinputs")) // listinputs
// if (SaveModel3State(token))
// printf("Emulator state successfully saved to <%s>\n", token);
// else
// printf("Unable to save emulator state to <%s>\n", token);
// return false;
//}
if (CheckToken(token, "lip", "listinputs")) // listinputs
{
ListInputs();
return false;
}
else if (CheckToken(token, "pip", "printinput")) // printinput NAME
else if (CheckToken(token, "pip", "printinput")) // printinput NAME
{
// Parse arguments
token = strtok(NULL, " ");
@ -134,6 +135,7 @@ namespace Debugger
else if (CheckToken(token, "cip", "configinput")) // configinput NAME
{
//// Parse arguments
// TODO
//token = strtok(NULL, " ");
//if (token == NULL)
//{