53{
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
72 if (CommandTokens.size() == 2)
73 {
75 {
76 ShowMessages("please specify a correct hex value for [count]\n\n");
78 return;
79 }
80 }
81 else
82 {
84 }
85
86
87
88
90 {
91
92
93
95 {
96 ShowMessages("the target process is running, use the "
97 "'pause' command or press CTRL+C to pause the process\n");
98 return;
99 }
100
101
102
103
105
106 for (SIZE_T i = 0; i < StepCount; i++)
107 {
108
109
110
111
112
113
114
115
116
117
122 ))
123 {
124 BreakOnNextInstruction =
TRUE;
125
126
127
128
129 LastInstruction =
TRUE;
130 }
131
132
133
134
136
137
138
139
141 {
142 break;
143 }
144
145
146
147
148 if (BreakOnNextInstruction)
149 {
150 break;
151 }
152 }
153
154
155
156
158 }
159 else
160 {
161 ShowMessages("err, going up (gu) is not valid in the current context, you "
162 "should connect to a debuggee\n");
163 }
164}
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 ConvertTokenToUInt32(CommandToken TargetToken, PUINT32 Result)
check and convert command token to a 32 bit unsigned integer
Definition common.cpp:546
BOOLEAN HyperDbgCheckWhetherTheCurrentInstructionIsRet(UCHAR *BufferToDisassemble, UINT64 BuffLength, BOOLEAN Isx86_64)
Check whether the current instruction is a 'ret' or not.
Definition disassembler.cpp:1095
BOOLEAN g_IsRunningInstruction32Bit
whether the Current executing instructions is 32-bit or 64 bit
Definition globals.h:232
BOOLEAN g_IsInstrumentingInstructions
Shows whether the user is running 't', 'p', or 'i' command.
Definition globals.h:571
VOID CommandGuHelp()
help of the gu command
Definition gu.cpp:29
BYTE g_CurrentRunningInstruction[MAXIMUM_INSTR_SIZE]
Current executing instructions.
Definition globals.h:226
BOOLEAN SteppingStepOverForGu(BOOLEAN LastInstruction)
Perform Step-over for GU.
Definition steppings.cpp:155