GDBserver
|
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 () |
typedef BOOL WINAPI windows_nat::AdjustTokenPrivileges_ftype(HANDLE, BOOL, PTOKEN_PRIVILEGES, DWORD, PTOKEN_PRIVILEGES, PDWORD) |
Definition at line 343 of file windows-nat.h.
typedef BOOL WINAPI windows_nat::DebugActiveProcessStop_ftype(DWORD) |
Definition at line 349 of file windows-nat.h.
typedef BOOL WINAPI windows_nat::DebugBreakProcess_ftype(HANDLE) |
Definition at line 352 of file windows-nat.h.
typedef BOOL WINAPI windows_nat::DebugSetProcessKillOnExit_ftype(BOOL) |
Definition at line 355 of file windows-nat.h.
typedef void WINAPI windows_nat::DeleteProcThreadAttributeList_ftype(gdb_lpproc_thread_attribute_list lpAttributeList) |
Definition at line 427 of file windows-nat.h.
typedef BOOL WINAPI windows_nat::EnumProcessModules_ftype(HANDLE, HMODULE *, DWORD, LPDWORD) |
Definition at line 358 of file windows-nat.h.
typedef void* windows_nat::gdb_lpproc_thread_attribute_list |
Definition at line 414 of file windows-nat.h.
typedef BOOL WINAPI windows_nat::GenerateConsoleCtrlEvent_ftype(DWORD, DWORD) |
Definition at line 409 of file windows-nat.h.
typedef COORD WINAPI windows_nat::GetConsoleFontSize_ftype(HANDLE, DWORD) |
Definition at line 390 of file windows-nat.h.
typedef BOOL WINAPI windows_nat::GetCurrentConsoleFont_ftype(HANDLE, BOOL, CONSOLE_FONT_INFO *) |
Definition at line 386 of file windows-nat.h.
typedef DWORD WINAPI windows_nat::GetModuleFileNameExA_ftype(HANDLE, HMODULE, LPSTR, DWORD) |
Definition at line 372 of file windows-nat.h.
typedef DWORD WINAPI windows_nat::GetModuleFileNameExW_ftype(HANDLE, HMODULE, LPWSTR, DWORD) |
Definition at line 376 of file windows-nat.h.
typedef BOOL WINAPI windows_nat::GetModuleInformation_ftype(HANDLE, HMODULE, LPMODULEINFO, DWORD) |
Definition at line 368 of file windows-nat.h.
typedef HRESULT WINAPI windows_nat::GetThreadDescription_ftype(HANDLE, PWSTR *) |
Definition at line 68 of file windows-nat.c.
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.
typedef BOOL WINAPI windows_nat::LookupPrivilegeValueA_ftype(LPCSTR, LPCSTR, PLUID) |
Definition at line 380 of file windows-nat.h.
typedef BOOL WINAPI windows_nat::OpenProcessToken_ftype(HANDLE, DWORD, PHANDLE) |
Definition at line 383 of file windows-nat.h.
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.
Enumerator | |
---|---|
HANDLE_EXCEPTION_UNHANDLED | |
HANDLE_EXCEPTION_HANDLED | |
HANDLE_EXCEPTION_IGNORED |
Definition at line 132 of file windows-nat.h.
Enumerator | |
---|---|
DONT_INVALIDATE_CONTEXT | |
DONT_SUSPEND | |
INVALIDATE_CONTEXT |
Definition at line 106 of file windows-nat.h.
BOOL WINAPI windows_nat::bad | ( | T... | args | ) |
Definition at line 903 of file windows-nat.c.
Referenced by initialize_loadable().
DWORD WINAPI windows_nat::bad | ( | T... | args | ) |
Definition at line 910 of file windows-nat.c.
|
static |
Definition at line 923 of file windows-nat.c.
Referenced by initialize_loadable().
|
static |
Definition at line 916 of file windows-nat.c.
Referenced by initialize_loadable().
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.
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().
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 ) |
Definition at line 781 of file windows-nat.c.
References DeleteProcThreadAttributeList, disable_randomization_available(), EXTENDED_STARTUPINFO_PRESENT, InitializeProcThreadAttributeList, mitigation_policy, relocate_aslr_flags, and UpdateProcThreadAttribute.
Referenced by create_process().
bool windows_nat::disable_randomization_available | ( | ) |
Definition at line 934 of file windows-nat.c.
References DeleteProcThreadAttributeList, InitializeProcThreadAttributeList, and UpdateProcThreadAttribute.
Referenced by create_process_wrapper().
|
static |
Definition at line 263 of file windows-nat.c.
Referenced by windows_nat::windows_process_info::dll_loaded_event().
bool windows_nat::initialize_loadable | ( | ) |
Definition at line 944 of file windows-nat.c.
References AdjustTokenPrivileges, bad(), bad_GetConsoleFontSize(), bad_GetCurrentConsoleFont(), DebugActiveProcessStop, DebugBreakProcess, DebugSetProcessKillOnExit, DeleteProcThreadAttributeList, EnumProcessModules, EnumProcessModulesEx, GenerateConsoleCtrlEvent, GetConsoleFontSize, GetCurrentConsoleFont, GetModuleFileNameExA, GetModuleFileNameExW, GetModuleInformation, GetThreadDescription, GPA, InitializeProcThreadAttributeList, LookupPrivilegeValueA, OpenProcessToken, UpdateProcThreadAttribute, Wow64GetThreadContext, Wow64GetThreadSelectorEntry, Wow64SetThreadContext, and Wow64SuspendThread.
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.
AdjustTokenPrivileges_ftype * windows_nat::AdjustTokenPrivileges |
Definition at line 44 of file windows-nat.c.
Referenced by initialize_loadable().
DebugActiveProcessStop_ftype * windows_nat::DebugActiveProcessStop |
Definition at line 45 of file windows-nat.c.
Referenced by initialize_loadable().
DebugBreakProcess_ftype * windows_nat::DebugBreakProcess |
Definition at line 46 of file windows-nat.c.
Referenced by initialize_loadable().
DebugSetProcessKillOnExit_ftype * windows_nat::DebugSetProcessKillOnExit |
Definition at line 47 of file windows-nat.c.
Referenced by initialize_loadable().
DeleteProcThreadAttributeList_ftype * windows_nat::DeleteProcThreadAttributeList |
Definition at line 73 of file windows-nat.c.
Referenced by create_process_wrapper(), disable_randomization_available(), and initialize_loadable().
EnumProcessModules_ftype * windows_nat::EnumProcessModules |
Definition at line 48 of file windows-nat.c.
Referenced by windows_nat::windows_process_info::add_dll(), windows_nat::windows_process_info::get_exec_module_filename(), and initialize_loadable().
GenerateConsoleCtrlEvent_ftype * windows_nat::GenerateConsoleCtrlEvent |
Definition at line 65 of file windows-nat.c.
Referenced by initialize_loadable().
GetConsoleFontSize_ftype * windows_nat::GetConsoleFontSize |
Definition at line 58 of file windows-nat.c.
Referenced by initialize_loadable().
GetCurrentConsoleFont_ftype * windows_nat::GetCurrentConsoleFont |
Definition at line 57 of file windows-nat.c.
Referenced by initialize_loadable().
GetModuleFileNameExA_ftype * windows_nat::GetModuleFileNameExA |
Definition at line 53 of file windows-nat.c.
Referenced by initialize_loadable().
GetModuleFileNameExW_ftype * windows_nat::GetModuleFileNameExW |
Definition at line 54 of file windows-nat.c.
Referenced by initialize_loadable().
GetModuleInformation_ftype * windows_nat::GetModuleInformation |
Definition at line 52 of file windows-nat.c.
Referenced by windows_nat::windows_process_info::add_dll(), and initialize_loadable().
|
static |
Definition at line 69 of file windows-nat.c.
Referenced by initialize_loadable(), and windows_nat::windows_thread_info::thread_name().
InitializeProcThreadAttributeList_ftype * windows_nat::InitializeProcThreadAttributeList |
Definition at line 71 of file windows-nat.c.
Referenced by create_process_wrapper(), disable_randomization_available(), and initialize_loadable().
|
static |
Definition at line 42 of file windows-nat.c.
Referenced by continue_last_debug_event(), and wait_for_debug_event().
LookupPrivilegeValueA_ftype * windows_nat::LookupPrivilegeValueA |
Definition at line 55 of file windows-nat.c.
Referenced by initialize_loadable().
OpenProcessToken_ftype * windows_nat::OpenProcessToken |
Definition at line 56 of file windows-nat.c.
Referenced by initialize_loadable().
UpdateProcThreadAttribute_ftype * windows_nat::UpdateProcThreadAttribute |
Definition at line 72 of file windows-nat.c.
Referenced by create_process_wrapper(), disable_randomization_available(), and initialize_loadable().