57{
58 UINT64 BaseAddress =
NULL;
63
64 if (CommandTokens.size() >= 6)
65 {
66 ShowMessages("incorrect use of the '%s'\n\n",
69 return;
70 }
71
73 {
74 ShowMessages("err, tracing callstack is not possible when you're not "
75 "connected to a debuggee\n");
76 return;
77 }
78
79
80
81
83 {
85 }
86 else
87 {
89 }
90
91 for (auto Section : CommandTokens)
92 {
93 if (IsFirstCommand)
94 {
95 IsFirstCommand =
FALSE;
96 continue;
97 }
98 if (IsNextBase ==
TRUE)
99 {
101 &BaseAddress))
102 {
103
104
105
106 ShowMessages("err, couldn't resolve error at '%s'\n",
108 return;
109 }
110
112 continue;
113 }
114
115 if (IsNextLength ==
TRUE)
116 {
118 {
119 ShowMessages("err, you should enter a valid length\n\n");
120 return;
121 }
122 IsNextLength =
FALSE;
123 continue;
124 }
125
127 {
129 continue;
130 }
131
133 {
135 continue;
136 }
137
138
139
140
141 ShowMessages("err, incorrect use of the '%s' command\n\n",
144
145 return;
146 }
147
148 if (IsNextLength || IsNextBase)
149 {
150 ShowMessages("incorrect use of the '%s' command\n\n",
153 return;
154 }
155
156
157
158
159
161 {
163 Length,
166 }
168 {
170 Length,
173 }
175 {
177 Length,
180 }
181}
BOOLEAN g_IsSerialConnectedToRemoteDebuggee
Shows if the debugger was connected to remote debuggee over (A remote guest).
Definition globals.h:253
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
BOOLEAN g_IsRunningInstruction32Bit
whether the Current executing instructions is 32-bit or 64 bit
Definition globals.h:232
VOID CommandKHelp()
help of the k command
Definition k.cpp:26
BOOLEAN KdSendCallStackPacketToDebuggee(UINT64 BaseAddress, UINT32 Size, DEBUGGER_CALLSTACK_DISPLAY_METHOD DisplayMethod, BOOLEAN Is32Bit)
Send a callstack request to the debuggee.
Definition kd.cpp:348
NULL()
Definition test-case-generator.py:530
BOOLEAN SymbolConvertNameOrExprToAddress(const string &TextToConvert, PUINT64 Result)
check and convert string to a 64 bit unsigned integer and also check for symbol object names and eval...
Definition symbol.cpp:359