1
0
Fork 0

DBG: added focusinfo command + moved commands to correct categories

This commit is contained in:
mrexodia 2016-10-13 10:09:48 +02:00
parent caf6b1e1b0
commit 9d47e9bbbe
No known key found for this signature in database
GPG Key ID: FC89E0AAA0C1AAD8
3 changed files with 14 additions and 4 deletions

View File

@ -473,4 +473,12 @@ CMDRESULT cbInstrBriefcheck(int argc, char* argv[])
dprintf("%p: %s\n", cp.Address(), mnem.c_str());
}
return STATUS_CONTINUE;
}
}
CMDRESULT cbInstrFocusinfo(int argc, char* argv[])
{
ACTIVEVIEW activeView;
GuiGetActiveView(&activeView);
dprintf("activeTitle: %s, activeClass: %s\n", activeView.title, activeView.className);
return STATUS_CONTINUE;
}

View File

@ -11,4 +11,5 @@ CMDRESULT cbInstrLoopList(int argc, char* argv[]);
CMDRESULT cbInstrCapstone(int argc, char* argv[]);
CMDRESULT cbInstrVisualize(int argc, char* argv[]);
CMDRESULT cbInstrMeminfo(int argc, char* argv[]);
CMDRESULT cbInstrBriefcheck(int argc, char* argv[]);
CMDRESULT cbInstrBriefcheck(int argc, char* argv[]);
CMDRESULT cbInstrFocusinfo(int argc, char* argv[]);

View File

@ -223,6 +223,7 @@ static void registercommands()
dbgcmdnew("TraceOverIntoTraceRecord\1toit", cbDebugTraceOverIntoTraceRecord, true); //Trace over into trace record
dbgcmdnew("RunToParty", cbDebugRunToParty, true); //Run to code in a party
dbgcmdnew("RunToUserCode\1rtu", cbDebugRunToUserCode, true); //Run to user code
dbgcmdnew("guidfind\1findguid", cbInstrGUIDFind, true); //find GUID references TODO: undocumented
//thread control
dbgcmdnew("createthread\1threadcreate\1newthread\1threadnew", cbDebugCreatethread, true); //create thread
@ -313,6 +314,7 @@ static void registercommands()
dbgcmdnew("analxrefs\1analx", cbInstrAnalxrefs, true); //analyze xrefs
dbgcmdnew("analrecur\1analr", cbInstrAnalrecur, true); //analyze a single function
dbgcmdnew("analadv", cbInstrAnalyseadv, true); //analyze xref,function and data
dbgcmdnew("traceexecute", cbInstrTraceexecute, true); //execute trace record on address TODO: undocumented
dbgcmdnew("virtualmod", cbInstrVirtualmod, true); //virtual module
dbgcmdnew("symdownload\1downloadsym", cbDebugDownloadSymbol, true); //download symbols
@ -418,8 +420,7 @@ static void registercommands()
dbgcmdnew("visualize", cbInstrVisualize, true); //visualize analysis
dbgcmdnew("meminfo", cbInstrMeminfo, true); //command to debug memory map bugs
dbgcmdnew("briefcheck", cbInstrBriefcheck, true); //check if mnemonic briefs are missing
dbgcmdnew("traceexecute", cbInstrTraceexecute, true); //execute trace record on address
dbgcmdnew("guidfind\1findguid", cbInstrGUIDFind, true); //find GUID references
dbgcmdnew("focusinfo", cbInstrFocusinfo, false);
};
static bool cbCommandProvider(char* cmd, int maxlen)