GDB (xrefs)
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_ftypewindows_nat::AdjustTokenPrivileges
 
DebugActiveProcessStop_ftypewindows_nat::DebugActiveProcessStop
 
DebugBreakProcess_ftypewindows_nat::DebugBreakProcess
 
DebugSetProcessKillOnExit_ftypewindows_nat::DebugSetProcessKillOnExit
 
EnumProcessModules_ftypewindows_nat::EnumProcessModules
 
GetModuleInformation_ftypewindows_nat::GetModuleInformation
 
GetModuleFileNameExA_ftypewindows_nat::GetModuleFileNameExA
 
GetModuleFileNameExW_ftypewindows_nat::GetModuleFileNameExW
 
LookupPrivilegeValueA_ftypewindows_nat::LookupPrivilegeValueA
 
OpenProcessToken_ftypewindows_nat::OpenProcessToken
 
GetCurrentConsoleFont_ftypewindows_nat::GetCurrentConsoleFont
 
GetConsoleFontSize_ftypewindows_nat::GetConsoleFontSize
 
GenerateConsoleCtrlEvent_ftypewindows_nat::GenerateConsoleCtrlEvent
 
static GetThreadDescription_ftypewindows_nat::GetThreadDescription
 
InitializeProcThreadAttributeList_ftypewindows_nat::InitializeProcThreadAttributeList
 
UpdateProcThreadAttribute_ftypewindows_nat::UpdateProcThreadAttribute
 
DeleteProcThreadAttributeList_ftypewindows_nat::DeleteProcThreadAttributeList
 

Macro Definition Documentation

◆ DEBUG_EVENTS

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

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

Referenced by windows_nat::continue_last_debug_event(), windows_nat::windows_process_info::fetch_pending_stop(), and windows_nat::windows_process_info::matching_pending_stop().

◆ DEBUG_EXCEPTION_SIMPLE

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

◆ EXTENDED_STARTUPINFO_PRESENT

#define EXTENDED_STARTUPINFO_PRESENT   0x00080000

◆ GetModuleFileNameEx

#define GetModuleFileNameEx   GetModuleFileNameExA

◆ 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.

Referenced by windows_nat::create_process_wrapper().

◆ MS_VC_EXCEPTION

#define MS_VC_EXCEPTION   0x406d1388

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

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

◆ relocate_aslr_flags

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

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

Referenced by windows_nat::create_process_wrapper().