mirror of
https://github.com/HyperDbg/HyperDbg.git
synced 2026-08-22 23:14:59 +00:00
56 lines
1.1 KiB
C++
56 lines
1.1 KiB
C++
/**
|
|
* @file g.cpp
|
|
* @author Sina Karvandi (sina@rayanfam.com)
|
|
* @brief g command
|
|
* @details
|
|
* @version 0.1
|
|
* @date 2020-07-25
|
|
*
|
|
* @copyright This project is released under the GNU Public License v3.
|
|
*
|
|
*/
|
|
#include "pch.h"
|
|
|
|
//
|
|
// Global Variables
|
|
//
|
|
extern BOOLEAN g_BreakPrintingOutput;
|
|
extern BOOLEAN g_IsConnectedToRemoteDebuggee;
|
|
|
|
/**
|
|
* @brief help of g command
|
|
*
|
|
* @return VOID
|
|
*/
|
|
VOID CommandGHelp() {
|
|
ShowMessages("g : continue a breaked debugger (by pause) or a remote breaked "
|
|
"debugger.\n\n");
|
|
ShowMessages("syntax : \tg\n");
|
|
}
|
|
|
|
/**
|
|
* @brief handler of g command
|
|
*
|
|
* @param SplittedCommand
|
|
* @return VOID
|
|
*/
|
|
VOID CommandG(vector<string> SplittedCommand) {
|
|
|
|
if (SplittedCommand.size() != 1) {
|
|
ShowMessages("incorrect use of 'g'\n\n");
|
|
CommandGHelp();
|
|
return;
|
|
}
|
|
|
|
//
|
|
// Set the g_BreakPrintingOutput to FALSE
|
|
//
|
|
g_BreakPrintingOutput = FALSE;
|
|
|
|
//
|
|
// If it's a remote debugger then we send the remote debuggee a 'g'
|
|
//
|
|
if (g_IsConnectedToRemoteDebuggee) {
|
|
RemoteConnectionSendCommand("g", strlen("g") + 1);
|
|
}
|
|
}
|