50{
   52 
   53    if (SplitCommand.size() > 3 || SplitCommand.size() == 2)
   54    {
   57        return;
   58    }
   59 
   60    
   61    
   62    
   64    {
   65        ShowMessages(
"err, the '.switch' command is only usable in VMI Mode, " 
   66                     "you can use the '.process', or the '.thread' "
   67                     "in Debugger Mode\n");
   68        return;
   69    }
   70 
   71    
   72    
   73    
   74    if (SplitCommand.size() == 1)
   75    {
   77    }
   78    else if (!SplitCommand.at(1).compare("pid"))
   79    {
   81        {
   82            ShowMessages(
"please specify a correct hex value for process id\n\n");
 
   83            return;
   84        }
   85 
   86        
   87        
   88        
   90        {
   92        }
   93    }
   94    else if (!SplitCommand.at(1).compare("tid"))
   95    {
   97        {
   98            ShowMessages(
"please specify a correct hex value for thread id\n\n");
 
   99            return;
  100        }
  101 
  102        
  103        
  104        
  106        {
  108        }
  109    }
  110    else
  111    {
  113                     SplitCommand.at(1).c_str());
  114        return;
  115    }
  116}
#define TRUE
Definition BasicTypes.h:55
#define FALSE
Definition BasicTypes.h:54
unsigned int UINT32
Definition BasicTypes.h:48
BOOLEAN ConvertStringToUInt32(string TextToConvert, PUINT32 Result)
check and convert string to a 32 bit unsigned it and also check for special notations like 0x etc.
Definition common.cpp:347
VOID ShowMessages(const char *Fmt,...)
Show messages.
Definition libhyperdbg.cpp:96
NULL()
Definition test-case-generator.py:530
VOID CommandSwitchHelp()
help of the .switch command
Definition switch.cpp:26
BOOLEAN g_IsSerialConnectedToRemoteDebuggee
Shows if the debugger was connected to remote debuggee over (A remote guest)
Definition globals.h:231
BOOLEAN UdSetActiveDebuggingThreadByPidOrTid(UINT32 TargetPidOrTid, BOOLEAN IsTid)
Set the active debugging thread by process id or thread id.
Definition ud.cpp:1037
BOOLEAN UdShowListActiveDebuggingProcessesAndThreads()
Show list of active debugging processes and threads.
Definition ud.cpp:1119