46{
48
49 if (CommandTokens.size() > 3)
50 {
51 ShowMessages("incorrect use of the '%s'\n\n",
54 return;
55 }
56
57
58
59
60 if (CommandTokens.size() == 1 || (CommandTokens.size() == 2 &&
CompareLowerCaseStrings(CommandTokens.at(1),
"list")))
61 {
63 }
65 {
67 {
68 ShowMessages("please specify a correct hex value for process id\n\n");
69 return;
70 }
71
72
73
74
76 {
77 ShowMessages("switched to process id: %x\n", PidOrTid);
78 }
79 }
81 {
83 {
84 ShowMessages("please specify a correct hex value for thread id\n\n");
85 return;
86 }
87
88
89
90
92 {
93 ShowMessages("switched to thread id: %x\n", PidOrTid);
94 }
95 }
96 else
97 {
98 ShowMessages("err, couldn't resolve error at '%s'\n",
100 return;
101 }
102}
std::string GetCaseSensitiveStringFromCommandToken(CommandToken TargetToken)
Get case sensitive string from command token.
Definition common.cpp:467
BOOLEAN CompareLowerCaseStrings(CommandToken TargetToken, const CHAR *StringToCompare)
Compare lower case strings.
Definition common.cpp:503
BOOLEAN ConvertTokenToUInt32(CommandToken TargetToken, PUINT32 Result)
check and convert command token to a 32 bit unsigned integer
Definition common.cpp:546
NULL()
Definition test-case-generator.py:530
VOID CommandSwitchHelp()
help of the .switch command
Definition switch.cpp:20
BOOLEAN UdSetActiveDebuggingThreadByPidOrTid(UINT32 TargetPidOrTid, BOOLEAN IsTid)
Set the active debugging thread by process id or thread id.
Definition ud.cpp:1314
BOOLEAN UdShowListActiveDebuggingProcessesAndThreads()
Show list of active debugging processes and threads.
Definition ud.cpp:1397