HyperDbg Debugger
Loading...
Searching...
No Matches
hwdbg-interpreter.h
Go to the documentation of this file.
1
12#pragma once
13
15// Definitions //
17
22#define HWDBG_TEST_READ_INSTANCE_INFO_PATH "..\\..\\..\\..\\hwdbg\\sim\\hwdbg\\DebuggerModuleTestingBRAM\\bram_instance_info.txt"
23
28#define HWDBG_TEST_WRITE_SCRIPT_BUFFER_PATH "..\\..\\..\\..\\hwdbg\\src\\test\\bram\\script_buffer.hex.txt"
29
34#define HWDBG_TEST_WRITE_INSTANCE_INFO_PATH "..\\..\\..\\..\\hwdbg\\src\\test\\bram\\instance_info.hex.txt"
35
37// Functions //
39
41HwdbgInterpretPacket(PVOID BufferReceived, UINT32 LengthReceived);
42
45 HWDBG_INSTANCE_INFORMATION * InstanceInfo,
46 const TCHAR * FileName,
47 UINT32 * MemoryBuffer,
48 size_t BufferSize,
49 HWDBG_ACTION_ENUMS RequestedAction);
50
52HwdbgInterpreterFillMemoryFromFile(const TCHAR * FileName, UINT32 * MemoryBuffer, size_t BufferSize);
53
56 HWDBG_INSTANCE_INFORMATION * InstanceInfo,
57 SYMBOL * SymbolBuffer,
58 size_t SymbolBufferLength,
59 UINT32 NumberOfStages,
60 HWDBG_SHORT_SYMBOL ** NewShortSymbolBuffer,
61 size_t * NewBufferSize);
62
65 size_t BufferLength,
66 UINT32 ScriptVariableLength,
67 UINT32 BramDataWidth,
68 size_t * NewBufferSize,
69 size_t * NumberOfBytesPerChunk);
70
71VOID
73
76 PVOID ScriptBuffer,
77 UINT32 CountOfScriptSymbolChunks,
78 UINT32 * NumberOfStages,
79 UINT32 * NumberOfOperands);
80
83 const TCHAR * FileName,
85 HWDBG_ACTION_ENUMS RequestedAction,
86 CHAR * Buffer,
87 UINT32 BufferLength);
88
91 const TCHAR * FileName,
92 UINT32 NumberOfSymbols,
93 HWDBG_SHORT_SYMBOL * Buffer,
94 UINT32 BufferLength);
UCHAR BOOLEAN
Definition BasicTypes.h:39
#define VOID
Definition BasicTypes.h:33
unsigned __int64 UINT64
Definition BasicTypes.h:21
unsigned int UINT32
Definition BasicTypes.h:48
char CHAR
Definition BasicTypes.h:31
enum _DEBUGGER_REMOTE_PACKET_TYPE DEBUGGER_REMOTE_PACKET_TYPE
enum for different packet types in HyperDbg packets
enum _HWDBG_ACTION_ENUMS HWDBG_ACTION_ENUMS
Different action of hwdbg.
BOOLEAN HwdbgInterpreterFillMemoryFromFile(const TCHAR *FileName, UINT32 *MemoryBuffer, size_t BufferSize)
Function to read the file and fill the memory buffer.
Definition hwdbg-interpreter.cpp:577
BOOLEAN HwdbgInterpreterFillFileFromMemory(HWDBG_INSTANCE_INFORMATION *InstanceInfo, const TCHAR *FileName, UINT32 *MemoryBuffer, size_t BufferSize, HWDBG_ACTION_ENUMS RequestedAction)
Function to write the memory buffer to a file in the specified format.
Definition hwdbg-interpreter.cpp:632
BOOLEAN HwdbgInterpreterConvertSymbolToHwdbgShortSymbolBuffer(HWDBG_INSTANCE_INFORMATION *InstanceInfo, SYMBOL *SymbolBuffer, size_t SymbolBufferLength, UINT32 NumberOfStages, HWDBG_SHORT_SYMBOL **NewShortSymbolBuffer, size_t *NewBufferSize)
Function to compress the buffer.
Definition hwdbg-interpreter.cpp:806
BOOLEAN HwdbgInterpreterSendScriptPacket(HWDBG_INSTANCE_INFORMATION *InstanceInfo, const TCHAR *FileName, UINT32 NumberOfSymbols, HWDBG_SHORT_SYMBOL *Buffer, UINT32 BufferLength)
Sends a HyperDbg script packet to the hwdbg.
Definition hwdbg-interpreter.cpp:1131
VOID HwdbgInterpreterShowScriptCapabilities(HWDBG_INSTANCE_INFORMATION *InstanceInfo)
Shows the script capablities of the target debuggee.
Definition hwdbg-interpreter.cpp:179
BOOLEAN HwdbgInterpreterCheckScriptBufferWithScriptCapabilities(HWDBG_INSTANCE_INFORMATION *InstanceInfo, PVOID ScriptBuffer, UINT32 CountOfScriptSymbolChunks, UINT32 *NumberOfStages, UINT32 *NumberOfOperands)
Check the script capablities with the target script buffer.
Definition hwdbg-interpreter.cpp:238
BOOLEAN HwdbgInterpreterCompressBuffer(UINT64 *Buffer, size_t BufferLength, UINT32 ScriptVariableLength, UINT32 BramDataWidth, size_t *NewBufferSize, size_t *NumberOfBytesPerChunk)
Function to compress the buffer.
Definition hwdbg-interpreter.cpp:724
BOOLEAN HwdbgInterpretPacket(PVOID BufferReceived, UINT32 LengthReceived)
Interpret packets of hwdbg.
Definition hwdbg-interpreter.cpp:30
BOOLEAN HwdbgInterpreterSendPacketAndBufferToHwdbg(HWDBG_INSTANCE_INFORMATION *InstanceInfo, const TCHAR *FileName, DEBUGGER_REMOTE_PACKET_TYPE PacketType, HWDBG_ACTION_ENUMS RequestedAction, CHAR *Buffer, UINT32 BufferLength)
Sends a HyperDbg packet + a buffer to the hwdbg.
Definition hwdbg-interpreter.cpp:994
The structure of script capabilities information in hwdbg.
Definition HardwareDebugger.h:91
Definition ScriptEngineCommonDefinitions.h:15
Definition ScriptEngineCommonDefinitions.h:6