1
0
Fork 0

Add the undocumented "cmdtest" command to log argv

This commit is contained in:
Duncan Ogilvie 2022-09-04 22:37:03 +02:00
parent 77cbbbf051
commit 3730abd784
3 changed files with 10 additions and 1 deletions

View File

@ -598,3 +598,10 @@ bool cbInstrLabelRuntimeFunctions(int argc, char* argv[])
return false;
#endif // _WIN64
}
bool cbInstrCmdTest(int argc, char* argv[])
{
for(int i = 0; i < argc; i++)
dprintf_untranslated("argv[%d]:%s\n", i, argv[i]);
return true;
}

View File

@ -16,4 +16,5 @@ bool cbInstrFlushlog(int argc, char* argv[]);
bool cbInstrAnimateWait(int argc, char* argv[]);
bool cbInstrDbdecompress(int argc, char* argv[]);
bool cbInstrDebugFlags(int argc, char* argv[]);
bool cbInstrLabelRuntimeFunctions(int argc, char* argv[]);
bool cbInstrLabelRuntimeFunctions(int argc, char* argv[]);
bool cbInstrCmdTest(int argc, char* argv[]);

View File

@ -451,6 +451,7 @@ static void registercommands()
dbgcmdnew("dbdecompress", cbInstrDbdecompress, false); //Decompress a database.
dbgcmdnew("DebugFlags", cbInstrDebugFlags, false); //Set ntdll LdrpDebugFlags
dbgcmdnew("LabelRuntimeFunctions", cbInstrLabelRuntimeFunctions, true); //Label exception directory entries
dbgcmdnew("cmdtest", cbInstrCmdTest, false); //log argv verbatim
};
bool cbCommandProvider(char* cmd, int maxlen)