54{
57
58
59
60
61 if (CommandTokens.size() != 1 && CommandTokens.size() != 2)
62 {
63 ShowMessages("incorrect use of the '%s'\n\n",
66 return;
67 }
68
69
70
71
73
74
75
76
77 if (CommandTokens.size() == 2)
78 {
80 {
81 ShowMessages("please specify a correct hex value for [count]\n\n");
83 return;
84 }
85 }
86 else
87 {
88 StepCount = 1;
89 }
90
91
92
93
95 {
96
97
98
100 {
101 ShowMessages("the target process is running, use the "
102 "'pause' command or press CTRL+C to pause the process\n");
103 return;
104 }
105
106
107
108
110
111 for (SIZE_T i = 0; i < StepCount; i++)
112 {
113
114
115
116
117
118
119
120
121
122
124
126 {
127
128
129
131
132 if (i != StepCount - 1)
133 {
134 ShowMessages("\n");
135 }
136 }
137
138
139
140
142 {
143 break;
144 }
145 }
146
147
148
149
151 }
152 else
153 {
154 ShowMessages("err, stepping (p) is not valid in the current context, you "
155 "should connect to a debuggee\n");
156 }
157}
BOOLEAN g_IsSerialConnectedToRemoteDebuggee
Shows if the debugger was connected to remote debuggee over (A remote guest).
Definition globals.h:253
ACTIVE_DEBUGGING_PROCESS g_ActiveProcessDebuggingState
State of active debugging thread.
Definition globals.h:372
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_IsInstrumentingInstructions
Shows whether the user is running 't', 'p', or 'i' command.
Definition globals.h:571
VOID CommandPHelp()
help of the p command
Definition p.cpp:27
BOOLEAN HyperDbgRegisterShowAll()
handler of r show all registers
Definition r.cpp:354
BOOLEAN SteppingStepOver()
Perform Step-over.
Definition steppings.cpp:117