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) void CConsoleDebugger::WaitCommand(CCPUDebug *cpu)
{ {
m_cpu = 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) bool CConsoleDebugger::ProcessToken(const char *token, const char *cmd)
{ {
UINT32 pc = m_cpu->pc; UINT32 pc = m_cpu->pc;

View file

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