35{
36 switch (CtrlType)
37 {
38
39
40
41 case CTRL_BREAK_EVENT:
42 case CTRL_C_EVENT:
43
44
45
46
48 {
50 }
51
52
53
54
56 {
57
58
59
61
62
63
64
66 }
67
68
69
70
72 {
74 {
76 }
77 else
78 {
80 }
81 }
83 {
84
85
86
87 }
88 else
89 {
91 {
93 }
94 else
95 {
96
97
98
100
101
102
103
105 {
107 }
108
109 Sleep(300);
110
111
112
113
115 {
117 {
118 ShowMessages(
119 "\npausing...%s\nauto-unpause mode is enabled, "
120 "debugger will automatically continue when you run a new "
121 "event command, if you want to change this behaviour then "
122 "run run 'settings autounpause off'\n\n",
124 }
125 else
126 {
127 ShowMessages(
128 "\npausing...%s\nauto-unpause mode is disabled, you "
129 "should run 'g' when you want to continue, otherwise run "
130 "'settings autounpause on'\n\n",
132 }
133
134
135
136
138
139
140
141
142
143
144
145
146 }
147 }
148 }
149
151
152
153
154
155 case CTRL_CLOSE_EVENT:
157
158 case CTRL_LOGOFF_EVENT:
160
161 case CTRL_SHUTDOWN_EVENT:
163
164 default:
165
166
167
168
169
170
171
173 }
174}
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
BOOLEAN g_IsExecutingSymbolLoadingRoutines
Executing symbol reloading or downloading routines.
Definition globals.h:516
BOOLEAN g_IgnorePauseRequests
Show whether the pause request (CTRL+C or CTRL+BREAK) should be ignored or not.
Definition globals.h:180
BOOLEAN g_IsConnectedToRemoteDebuggee
Shows whether the current debugger is the host and connected to a remote debuggee (guest).
Definition globals.h:96
BOOLEAN g_IsInstrumentingInstructions
Shows whether the user is running 't', 'p', or 'i' command.
Definition globals.h:571
VOID HyperDbgShowSignature()
Show signature of HyperDbg.
Definition interpreter.cpp:1086
VOID KdBreakControlCheckAndPauseDebugger(BOOLEAN SignalRunningFlag)
check if the debuggee needs to be paused
Definition kd.cpp:2040
BOOLEAN g_IsKdModuleLoaded
shows whether the kernel debugger (KD) module is loaded or not
Definition globals.h:22
BOOLEAN g_BreakPrintingOutput
Shows whether the pause command or CTRL+C or CTRL+Break is executed or not.
Definition globals.h:509
INT RemoteConnectionSendCommand(const CHAR *sendbuf, INT len)
send the command as a client (debugger, host) to the server (debuggee, guest)
Definition remote-connection.cpp:445
VOID ScriptEngineSymbolAbortLoadingWrapper()
SymbolAbortLoading wrapper.
Definition script-engine-wrapper.cpp:229
BOOLEAN g_AutoUnpause
Whether auto-unpause mode is enabled or not enabled.
Definition globals.h:587