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 {
119 "\npausing...\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");
123 }
124 else
125 {
127 "\npausing...\nauto-unpause mode is disabled, you "
128 "should run 'g' when you want to continue, otherwise run "
129 "'settings "
130 "autounpause on'\n\n");
131 }
132
133
134
135
137
139 {
141 }
142 }
143 }
144 }
145
147
148
149
150
151 case CTRL_CLOSE_EVENT:
153
154 case CTRL_LOGOFF_EVENT:
156
157 case CTRL_SHUTDOWN_EVENT:
159
160 default:
161
162
163
164
165
166
167
169 }
170}
#define TRUE
Definition BasicTypes.h:55
#define FALSE
Definition BasicTypes.h:54
unsigned int UINT32
Definition BasicTypes.h:48
BOOLEAN g_IsConnectedToRemoteDebuggee
Shows whether the current debugger is the host and connected to a remote debuggee (guest)
Definition globals.h:74
BOOLEAN g_IsInstrumentingInstructions
Shows whether the user is running 't', 'p', or 'i' command.
Definition globals.h:561
BOOLEAN g_IsSerialConnectedToRemoteDebuggee
Shows if the debugger was connected to remote debuggee over (A remote guest)
Definition globals.h:231
BOOLEAN g_BreakPrintingOutput
Shows whether the pause command or CTRL+C or CTRL+Break is executed or not.
Definition globals.h:499
BOOLEAN g_IsExecutingSymbolLoadingRoutines
Executing symbol reloading or downloading routines.
Definition globals.h:506
ACTIVE_DEBUGGING_PROCESS g_ActiveProcessDebuggingState
State of active debugging thread.
Definition globals.h:362
BOOLEAN g_AutoUnpause
Whether auto-unpause mode is enabled or not enabled.
Definition globals.h:577
BOOLEAN g_IsDebuggerModulesLoaded
this variable is used to indicate that modules are loaded so we make sure to later use a trace of loa...
Definition globals.h:356
BOOLEAN g_IgnorePauseRequests
Show whether the pause request (CTRL+C or CTRL+BREAK) should be ignored or not.
Definition globals.h:158
VOID HyperDbgShowSignature()
Show signature of HyperDbg.
Definition interpreter.cpp:566
VOID ShowMessages(const char *Fmt,...)
Show messages.
Definition libhyperdbg.cpp:96
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:228
BOOLEAN IsActive
Definition ud.h:49
UINT64 ProcessDebuggingToken
Definition ud.h:50
BOOLEAN UdPauseProcess(UINT64 ProcessDebuggingToken)
Pause the target process.
Definition ud.cpp:843