|
HyperDbg Debugger
|
User mode cross-platform interface for the kernel-debugger serial transport. More...
Go to the source code of this file.
Typedefs | |
| typedef enum _PLATFORM_SERIAL_IO_ROLE | PLATFORM_SERIAL_IO_ROLE |
Enumerations | |
| enum | _PLATFORM_SERIAL_IO_ROLE { PLATFORM_SERIAL_IO_DEBUGGER , PLATFORM_SERIAL_IO_DEBUGGEE } |
Functions | |
| HANDLE | PlatformSerialOpen (const char *PortName, PLATFORM_SERIAL_IO_ROLE Role) |
| BOOLEAN | PlatformSerialConfigure (HANDLE Handle, DWORD BaudRate) |
| BOOLEAN | PlatformSerialReadByte (HANDLE Handle, CHAR *OutByte, DWORD *BytesRead, PLATFORM_SERIAL_IO_ROLE Role) |
| BOOLEAN | PlatformSerialWrite (HANDLE Handle, const void *Buffer, UINT32 Length, BOOLEAN Synchronous) |
| BOOLEAN | PlatformSerialClose (HANDLE Handle) |
User mode cross-platform interface for the kernel-debugger serial transport.
The kernel-debugging protocol in kd.cpp is platform independent; only the byte transport underneath it (serial COM port / named pipe) is OS specific. This interface isolates those primitives so the protocol layer can stay shared. Windows maps onto Win32 (CreateFile / Comm* / overlapped ReadFile/WriteFile); Linux will map onto termios over /dev/tty* (TODO).
| typedef enum _PLATFORM_SERIAL_IO_ROLE PLATFORM_SERIAL_IO_ROLE |
| BOOLEAN PlatformSerialClose | ( | HANDLE | Handle | ) |
| HANDLE PlatformSerialOpen | ( | const char * | PortName, |
| PLATFORM_SERIAL_IO_ROLE | Role ) |
| BOOLEAN PlatformSerialReadByte | ( | HANDLE | Handle, |
| CHAR * | OutByte, | ||
| DWORD * | BytesRead, | ||
| PLATFORM_SERIAL_IO_ROLE | Role ) |