GDBserver
Loading...
Searching...
No Matches
Classes | Typedefs | Enumerations | Functions | Variables
windows_nat Namespace Reference

Classes

struct  pending_stop
 
struct  windows_process_info
 
struct  windows_thread_info
 

Typedefs

typedef HRESULT WINAPI GetThreadDescription_ftype(HANDLE, PWSTR *)
 
typedef BOOL WINAPI AdjustTokenPrivileges_ftype(HANDLE, BOOL, PTOKEN_PRIVILEGES, DWORD, PTOKEN_PRIVILEGES, PDWORD)
 
typedef BOOL WINAPI DebugActiveProcessStop_ftype(DWORD)
 
typedef BOOL WINAPI DebugBreakProcess_ftype(HANDLE)
 
typedef BOOL WINAPI DebugSetProcessKillOnExit_ftype(BOOL)
 
typedef BOOL WINAPI EnumProcessModules_ftype(HANDLE, HMODULE *, DWORD, LPDWORD)
 
typedef BOOL WINAPI GetModuleInformation_ftype(HANDLE, HMODULE, LPMODULEINFO, DWORD)
 
typedef DWORD WINAPI GetModuleFileNameExA_ftype(HANDLE, HMODULE, LPSTR, DWORD)
 
typedef DWORD WINAPI GetModuleFileNameExW_ftype(HANDLE, HMODULE, LPWSTR, DWORD)
 
typedef BOOL WINAPI LookupPrivilegeValueA_ftype(LPCSTR, LPCSTR, PLUID)
 
typedef BOOL WINAPI OpenProcessToken_ftype(HANDLE, DWORD, PHANDLE)
 
typedef BOOL WINAPI GetCurrentConsoleFont_ftype(HANDLE, BOOL, CONSOLE_FONT_INFO *)
 
typedef COORD WINAPI GetConsoleFontSize_ftype(HANDLE, DWORD)
 
typedef BOOL WINAPI GenerateConsoleCtrlEvent_ftype(DWORD, DWORD)
 
typedef void * gdb_lpproc_thread_attribute_list
 
typedef BOOL WINAPI InitializeProcThreadAttributeList_ftype(gdb_lpproc_thread_attribute_list lpAttributeList, DWORD dwAttributeCount, DWORD dwFlags, PSIZE_T lpSize)
 
typedef BOOL WINAPI UpdateProcThreadAttribute_ftype(gdb_lpproc_thread_attribute_list lpAttributeList, DWORD dwFlags, DWORD_PTR Attribute, PVOID lpValue, SIZE_T cbSize, PVOID lpPreviousValue, PSIZE_T lpReturnSize)
 
typedef void WINAPI DeleteProcThreadAttributeList_ftype(gdb_lpproc_thread_attribute_list lpAttributeList)
 

Enumerations

enum  thread_disposition_type { DONT_INVALIDATE_CONTEXT , DONT_SUSPEND , INVALIDATE_CONTEXT }
 
enum  handle_exception_result { HANDLE_EXCEPTION_UNHANDLED = 0 , HANDLE_EXCEPTION_HANDLED , HANDLE_EXCEPTION_IGNORED }
 

Functions

static const char * get_image_name (HANDLE h, void *address, int unicode)
 
BOOL continue_last_debug_event (DWORD continue_status, bool debug_events)
 
BOOL wait_for_debug_event (DEBUG_EVENT *event, DWORD timeout)
 
template<typename FUNC , typename CHAR , typename INFO >
BOOL 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 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 bad (T... args)
 
template<typename... T>
DWORD WINAPI bad (T... args)
 
static BOOL WINAPI bad_GetCurrentConsoleFont (HANDLE w, BOOL bMaxWindow, CONSOLE_FONT_INFO *f)
 
static COORD WINAPI bad_GetConsoleFontSize (HANDLE w, DWORD nFont)
 
bool disable_randomization_available ()
 
bool initialize_loadable ()
 

Variables

static DEBUG_EVENT last_wait_event
 
AdjustTokenPrivileges_ftypeAdjustTokenPrivileges
 
DebugActiveProcessStop_ftypeDebugActiveProcessStop
 
DebugBreakProcess_ftypeDebugBreakProcess
 
DebugSetProcessKillOnExit_ftypeDebugSetProcessKillOnExit
 
EnumProcessModules_ftypeEnumProcessModules
 
GetModuleInformation_ftypeGetModuleInformation
 
GetModuleFileNameExA_ftypeGetModuleFileNameExA
 
GetModuleFileNameExW_ftypeGetModuleFileNameExW
 
LookupPrivilegeValueA_ftypeLookupPrivilegeValueA
 
OpenProcessToken_ftypeOpenProcessToken
 
GetCurrentConsoleFont_ftypeGetCurrentConsoleFont
 
GetConsoleFontSize_ftypeGetConsoleFontSize
 
GenerateConsoleCtrlEvent_ftypeGenerateConsoleCtrlEvent
 
static GetThreadDescription_ftypeGetThreadDescription
 
InitializeProcThreadAttributeList_ftypeInitializeProcThreadAttributeList
 
UpdateProcThreadAttribute_ftypeUpdateProcThreadAttribute
 
DeleteProcThreadAttributeList_ftypeDeleteProcThreadAttributeList
 

Typedef Documentation

◆ AdjustTokenPrivileges_ftype

typedef BOOL WINAPI windows_nat::AdjustTokenPrivileges_ftype(HANDLE, BOOL, PTOKEN_PRIVILEGES, DWORD, PTOKEN_PRIVILEGES, PDWORD)

Definition at line 343 of file windows-nat.h.

◆ DebugActiveProcessStop_ftype

typedef BOOL WINAPI windows_nat::DebugActiveProcessStop_ftype(DWORD)

Definition at line 349 of file windows-nat.h.

◆ DebugBreakProcess_ftype

typedef BOOL WINAPI windows_nat::DebugBreakProcess_ftype(HANDLE)

Definition at line 352 of file windows-nat.h.

◆ DebugSetProcessKillOnExit_ftype

typedef BOOL WINAPI windows_nat::DebugSetProcessKillOnExit_ftype(BOOL)

Definition at line 355 of file windows-nat.h.

◆ DeleteProcThreadAttributeList_ftype

typedef void WINAPI windows_nat::DeleteProcThreadAttributeList_ftype(gdb_lpproc_thread_attribute_list lpAttributeList)

Definition at line 427 of file windows-nat.h.

◆ EnumProcessModules_ftype

typedef BOOL WINAPI windows_nat::EnumProcessModules_ftype(HANDLE, HMODULE *, DWORD, LPDWORD)

Definition at line 358 of file windows-nat.h.

◆ gdb_lpproc_thread_attribute_list

Definition at line 414 of file windows-nat.h.

◆ GenerateConsoleCtrlEvent_ftype

typedef BOOL WINAPI windows_nat::GenerateConsoleCtrlEvent_ftype(DWORD, DWORD)

Definition at line 409 of file windows-nat.h.

◆ GetConsoleFontSize_ftype

typedef COORD WINAPI windows_nat::GetConsoleFontSize_ftype(HANDLE, DWORD)

Definition at line 390 of file windows-nat.h.

◆ GetCurrentConsoleFont_ftype

typedef BOOL WINAPI windows_nat::GetCurrentConsoleFont_ftype(HANDLE, BOOL, CONSOLE_FONT_INFO *)

Definition at line 386 of file windows-nat.h.

◆ GetModuleFileNameExA_ftype

typedef DWORD WINAPI windows_nat::GetModuleFileNameExA_ftype(HANDLE, HMODULE, LPSTR, DWORD)

Definition at line 372 of file windows-nat.h.

◆ GetModuleFileNameExW_ftype

typedef DWORD WINAPI windows_nat::GetModuleFileNameExW_ftype(HANDLE, HMODULE, LPWSTR, DWORD)

Definition at line 376 of file windows-nat.h.

◆ GetModuleInformation_ftype

typedef BOOL WINAPI windows_nat::GetModuleInformation_ftype(HANDLE, HMODULE, LPMODULEINFO, DWORD)

Definition at line 368 of file windows-nat.h.

◆ GetThreadDescription_ftype

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

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

◆ InitializeProcThreadAttributeList_ftype

typedef BOOL WINAPI windows_nat::InitializeProcThreadAttributeList_ftype(gdb_lpproc_thread_attribute_list lpAttributeList, DWORD dwAttributeCount, DWORD dwFlags, PSIZE_T lpSize)

Definition at line 416 of file windows-nat.h.

◆ LookupPrivilegeValueA_ftype

typedef BOOL WINAPI windows_nat::LookupPrivilegeValueA_ftype(LPCSTR, LPCSTR, PLUID)

Definition at line 380 of file windows-nat.h.

◆ OpenProcessToken_ftype

typedef BOOL WINAPI windows_nat::OpenProcessToken_ftype(HANDLE, DWORD, PHANDLE)

Definition at line 383 of file windows-nat.h.

◆ UpdateProcThreadAttribute_ftype

typedef BOOL WINAPI windows_nat::UpdateProcThreadAttribute_ftype(gdb_lpproc_thread_attribute_list lpAttributeList, DWORD dwFlags, DWORD_PTR Attribute, PVOID lpValue, SIZE_T cbSize, PVOID lpPreviousValue, PSIZE_T lpReturnSize)

Definition at line 421 of file windows-nat.h.

Enumeration Type Documentation

◆ handle_exception_result

Enumerator
HANDLE_EXCEPTION_UNHANDLED 
HANDLE_EXCEPTION_HANDLED 
HANDLE_EXCEPTION_IGNORED 

Definition at line 132 of file windows-nat.h.

◆ thread_disposition_type

Enumerator
DONT_INVALIDATE_CONTEXT 
DONT_SUSPEND 
INVALIDATE_CONTEXT 

Definition at line 106 of file windows-nat.h.

Function Documentation

◆ bad() [1/2]

template<typename... T>
BOOL WINAPI windows_nat::bad ( T... args)

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

Referenced by initialize_loadable().

◆ bad() [2/2]

template<typename... T>
DWORD WINAPI windows_nat::bad ( T... args)

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

◆ bad_GetConsoleFontSize()

static COORD WINAPI windows_nat::bad_GetConsoleFontSize ( HANDLE w,
DWORD nFont )
static

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

Referenced by initialize_loadable().

◆ bad_GetCurrentConsoleFont()

static BOOL WINAPI windows_nat::bad_GetCurrentConsoleFont ( HANDLE w,
BOOL bMaxWindow,
CONSOLE_FONT_INFO * f )
static

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

Referenced by initialize_loadable().

◆ continue_last_debug_event()

BOOL windows_nat::continue_last_debug_event ( DWORD continue_status,
bool debug_events )

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

References DEBUG_EVENTS, and last_wait_event.

◆ create_process()

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 )

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

References create_process_wrapper().

◆ create_process_wrapper()

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 )

◆ disable_randomization_available()

bool windows_nat::disable_randomization_available ( )

◆ get_image_name()

static const char * windows_nat::get_image_name ( HANDLE h,
void * address,
int unicode )
static

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

Referenced by windows_nat::windows_process_info::dll_loaded_event().

◆ initialize_loadable()

bool windows_nat::initialize_loadable ( )

◆ wait_for_debug_event()

BOOL windows_nat::wait_for_debug_event ( DEBUG_EVENT * event,
DWORD timeout )

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

References last_wait_event.

Variable Documentation

◆ AdjustTokenPrivileges

AdjustTokenPrivileges_ftype * windows_nat::AdjustTokenPrivileges

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

Referenced by initialize_loadable().

◆ DebugActiveProcessStop

DebugActiveProcessStop_ftype * windows_nat::DebugActiveProcessStop

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

Referenced by initialize_loadable().

◆ DebugBreakProcess

DebugBreakProcess_ftype * windows_nat::DebugBreakProcess

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

Referenced by initialize_loadable().

◆ DebugSetProcessKillOnExit

DebugSetProcessKillOnExit_ftype * windows_nat::DebugSetProcessKillOnExit

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

Referenced by initialize_loadable().

◆ DeleteProcThreadAttributeList

DeleteProcThreadAttributeList_ftype * windows_nat::DeleteProcThreadAttributeList

◆ EnumProcessModules

EnumProcessModules_ftype * windows_nat::EnumProcessModules

◆ GenerateConsoleCtrlEvent

GenerateConsoleCtrlEvent_ftype * windows_nat::GenerateConsoleCtrlEvent

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

Referenced by initialize_loadable().

◆ GetConsoleFontSize

GetConsoleFontSize_ftype * windows_nat::GetConsoleFontSize

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

Referenced by initialize_loadable().

◆ GetCurrentConsoleFont

GetCurrentConsoleFont_ftype * windows_nat::GetCurrentConsoleFont

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

Referenced by initialize_loadable().

◆ GetModuleFileNameExA

GetModuleFileNameExA_ftype * windows_nat::GetModuleFileNameExA

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

Referenced by initialize_loadable().

◆ GetModuleFileNameExW

GetModuleFileNameExW_ftype * windows_nat::GetModuleFileNameExW

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

Referenced by initialize_loadable().

◆ GetModuleInformation

GetModuleInformation_ftype * windows_nat::GetModuleInformation

◆ GetThreadDescription

GetThreadDescription_ftype* windows_nat::GetThreadDescription
static

◆ InitializeProcThreadAttributeList

InitializeProcThreadAttributeList_ftype * windows_nat::InitializeProcThreadAttributeList

◆ last_wait_event

DEBUG_EVENT windows_nat::last_wait_event
static

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

Referenced by continue_last_debug_event(), and wait_for_debug_event().

◆ LookupPrivilegeValueA

LookupPrivilegeValueA_ftype * windows_nat::LookupPrivilegeValueA

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

Referenced by initialize_loadable().

◆ OpenProcessToken

OpenProcessToken_ftype * windows_nat::OpenProcessToken

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

Referenced by initialize_loadable().

◆ UpdateProcThreadAttribute

UpdateProcThreadAttribute_ftype * windows_nat::UpdateProcThreadAttribute