GDBserver
Loading...
Searching...
No Matches
Namespaces | Macros | Typedefs | Functions | Variables
windows-nat.c File Reference
#include "gdbsupport/common-defs.h"
#include "nat/windows-nat.h"
#include "gdbsupport/common-debug.h"
#include "target/target.h"

Go to the source code of this file.

Namespaces

namespace  windows_nat
 

Macros

#define GetModuleFileNameEx   GetModuleFileNameExA
 
#define GetThreadDescription   dyn_GetThreadDescription
 
#define DEBUG_EVENTS(fmt, ...)
 
#define MS_VC_EXCEPTION   0x406d1388
 
#define DEBUG_EXCEPTION_SIMPLE(x)
 
#define relocate_aslr_flags   ((0x2 << 8) | (0x2 << 16))
 
#define mitigation_policy   0x00020007
 
#define EXTENDED_STARTUPINFO_PRESENT   0x00080000
 
#define GPA(m, func)    func = (func ## _ftype *) GetProcAddress (m, #func)
 

Typedefs

typedef HRESULT WINAPI() windows_nat::GetThreadDescription_ftype(HANDLE, PWSTR *)
 

Functions

static const char * windows_nat::get_image_name (HANDLE h, void *address, int unicode)
 
BOOL windows_nat::continue_last_debug_event (DWORD continue_status, bool debug_events)
 
BOOL windows_nat::wait_for_debug_event (DEBUG_EVENT *event, DWORD timeout)
 
template<typename FUNC , typename CHAR , typename INFO >
BOOL windows_nat::create_process_wrapper (FUNC *do_create_process, const CHAR *image, CHAR *command_line, DWORD flags, void *environment, const CHAR *cur_dir, bool no_randomization, INFO *startup_info, PROCESS_INFORMATION *process_info)
 
BOOL windows_nat::create_process (const char *image, char *command_line, DWORD flags, void *environment, const char *cur_dir, bool no_randomization, STARTUPINFOA *startup_info, PROCESS_INFORMATION *process_info)
 
template<typename... T>
BOOL WINAPI windows_nat::bad (T... args)
 
template<typename... T>
DWORD WINAPI windows_nat::bad (T... args)
 
static BOOL WINAPI windows_nat::bad_GetCurrentConsoleFont (HANDLE w, BOOL bMaxWindow, CONSOLE_FONT_INFO *f)
 
static COORD WINAPI windows_nat::bad_GetConsoleFontSize (HANDLE w, DWORD nFont)
 
bool windows_nat::disable_randomization_available ()
 
bool windows_nat::initialize_loadable ()
 

Variables

static DEBUG_EVENT windows_nat::last_wait_event
 
AdjustTokenPrivileges_ftype * windows_nat::AdjustTokenPrivileges
 
DebugActiveProcessStop_ftype * windows_nat::DebugActiveProcessStop
 
DebugBreakProcess_ftype * windows_nat::DebugBreakProcess
 
DebugSetProcessKillOnExit_ftype * windows_nat::DebugSetProcessKillOnExit
 
EnumProcessModules_ftype * windows_nat::EnumProcessModules
 
GetModuleInformation_ftype * windows_nat::GetModuleInformation
 
GetModuleFileNameExA_ftype * windows_nat::GetModuleFileNameExA
 
GetModuleFileNameExW_ftype * windows_nat::GetModuleFileNameExW
 
LookupPrivilegeValueA_ftype * windows_nat::LookupPrivilegeValueA
 
OpenProcessToken_ftype * windows_nat::OpenProcessToken
 
GetCurrentConsoleFont_ftype * windows_nat::GetCurrentConsoleFont
 
GetConsoleFontSize_ftype * windows_nat::GetConsoleFontSize
 
GenerateConsoleCtrlEvent_ftype * windows_nat::GenerateConsoleCtrlEvent
 
static GetThreadDescription_ftype * windows_nat::GetThreadDescription
 
InitializeProcThreadAttributeList_ftype * windows_nat::InitializeProcThreadAttributeList
 
UpdateProcThreadAttribute_ftype * windows_nat::UpdateProcThreadAttribute
 
DeleteProcThreadAttributeList_ftype * windows_nat::DeleteProcThreadAttributeList
 

Macro Definition Documentation

◆ DEBUG_EVENTS

#define DEBUG_EVENTS (   fmt,
  ... 
)
Value:
debug_prefixed_printf_cond (debug_events, "windows events", fmt, \
## __VA_ARGS__)

Definition at line 77 of file windows-nat.c.

◆ DEBUG_EXCEPTION_SIMPLE

#define DEBUG_EXCEPTION_SIMPLE (   x)
Value:
if (debug_exceptions) \
debug_printf ("gdb: Target exception %s at %s\n", x, \
host_address_to_string (\
current_event.u.Exception.ExceptionRecord.ExceptionAddress))

◆ EXTENDED_STARTUPINFO_PRESENT

#define EXTENDED_STARTUPINFO_PRESENT   0x00080000

◆ GetModuleFileNameEx

#define GetModuleFileNameEx   GetModuleFileNameExA

Definition at line 27 of file windows-nat.c.

◆ GetThreadDescription

#define GetThreadDescription   dyn_GetThreadDescription

Definition at line 67 of file windows-nat.c.

◆ GPA

#define GPA (   m,
  func 
)     func = (func ## _ftype *) GetProcAddress (m, #func)

◆ mitigation_policy

#define mitigation_policy   0x00020007

Definition at line 757 of file windows-nat.c.

◆ MS_VC_EXCEPTION

#define MS_VC_EXCEPTION   0x406d1388

Definition at line 356 of file windows-nat.c.

◆ relocate_aslr_flags

#define relocate_aslr_flags   ((0x2 << 8) | (0x2 << 16))

Definition at line 754 of file windows-nat.c.