GDB (xrefs)
|
#include "defs.h"
#include "frame.h"
#include "inferior.h"
#include "infrun.h"
#include "target.h"
#include "gdbcore.h"
#include "command.h"
#include "completer.h"
#include "regcache.h"
#include "top.h"
#include <signal.h>
#include <sys/types.h>
#include <fcntl.h>
#include <windows.h>
#include <imagehlp.h>
#include <psapi.h>
#include "buildsym.h"
#include "filenames.h"
#include "symfile.h"
#include "objfiles.h"
#include "gdb_bfd.h"
#include "gdb_obstack.h"
#include "gdbthread.h"
#include "gdbcmd.h"
#include <unistd.h>
#include "exec.h"
#include "solist.h"
#include "solib.h"
#include "xml-support.h"
#include "i386-tdep.h"
#include "i387-tdep.h"
#include "windows-tdep.h"
#include "windows-nat.h"
#include "x86-nat.h"
#include "complaints.h"
#include "inf-child.h"
Go to the source code of this file.
Classes | |
struct | windows_thread_info_struct |
struct | xlate_exception |
struct | safe_symbol_file_add_args |
struct | lm_info |
Macros | |
#define | AdjustTokenPrivileges dyn_AdjustTokenPrivileges |
#define | DebugActiveProcessStop dyn_DebugActiveProcessStop |
#define | DebugBreakProcess dyn_DebugBreakProcess |
#define | DebugSetProcessKillOnExit dyn_DebugSetProcessKillOnExit |
#define | EnumProcessModules dyn_EnumProcessModules |
#define | GetModuleInformation dyn_GetModuleInformation |
#define | LookupPrivilegeValueA dyn_LookupPrivilegeValueA |
#define | OpenProcessToken dyn_OpenProcessToken |
#define | GetConsoleFontSize dyn_GetConsoleFontSize |
#define | GetCurrentConsoleFont dyn_GetCurrentConsoleFont |
#define | __PMAX (MAX_PATH + 1) |
#define | STARTUPINFO STARTUPINFOA |
#define | CreateProcess CreateProcessA |
#define | GetModuleFileNameEx_name "GetModuleFileNameExA" |
#define | bad_GetModuleFileNameEx bad_GetModuleFileNameExA |
#define | CONTEXT_EXTENDED_REGISTERS 0 |
#define | CONTEXT_DEBUGGER_DR |
#define | DR6_CLEAR_VALUE 0xffff0ff0 |
#define | _CYGWIN_SIGNAL_STRING "cYgSiGw00f" |
#define | CHECK(x) check (x, __FILE__,__LINE__) |
#define | DEBUG_EXEC(x) if (debug_exec) printf_unfiltered x |
#define | DEBUG_EVENTS(x) if (debug_events) printf_unfiltered x |
#define | DEBUG_MEM(x) if (debug_memory) printf_unfiltered x |
#define | DEBUG_EXCEPT(x) if (debug_exceptions) printf_unfiltered x |
#define | DEBUG_EXCEPTION_SIMPLE(x) |
Typedefs | |
typedef struct windows_thread_info_struct | windows_thread_info |
Enumerations | |
enum | { FLAG_TRACE_BIT = 0x100 } |
Functions | |
static void | windows_stop (struct target_ops *self, ptid_t) |
static int | windows_thread_alive (struct target_ops *, ptid_t) |
static void | windows_kill_inferior (struct target_ops *) |
static void | cygwin_set_dr (int i, CORE_ADDR addr) |
static void | cygwin_set_dr7 (unsigned long val) |
static CORE_ADDR | cygwin_get_dr (int i) |
static unsigned long | cygwin_get_dr6 (void) |
static unsigned long | cygwin_get_dr7 (void) |
void | windows_set_context_register_offsets (const int *offsets) |
void | windows_set_segment_register_p (segment_register_p_ftype *fun) |
static void | check (BOOL ok, const char *file, int line) |
static windows_thread_info * | thread_rec (DWORD id, int get_context) |
static windows_thread_info * | windows_add_thread (ptid_t ptid, HANDLE h, void *tlb) |
static void | windows_init_thread_list (void) |
static void | windows_delete_thread (ptid_t ptid, DWORD exit_code) |
static void | do_windows_fetch_inferior_registers (struct regcache *regcache, int r) |
static void | windows_fetch_inferior_registers (struct target_ops *ops, struct regcache *regcache, int r) |
static void | do_windows_store_inferior_registers (const struct regcache *regcache, int r) |
static void | windows_store_inferior_registers (struct target_ops *ops, struct regcache *regcache, int r) |
static struct so_list * | windows_make_so (const char *name, LPVOID load_addr) |
static char * | get_image_name (HANDLE h, void *address, int unicode) |
static int | handle_load_dll (void *dummy) |
static void | windows_free_so (struct so_list *so) |
static int | handle_unload_dll (void *dummy) |
static void | windows_clear_solib (void) |
static int | handle_output_debug_string (struct target_waitstatus *ourstatus) |
static int | display_selector (HANDLE thread, DWORD sel) |
static void | display_selectors (char *args, int from_tty) |
static int | handle_exception (struct target_waitstatus *ourstatus) |
static BOOL | windows_continue (DWORD continue_status, int id, int killed) |
static DWORD | fake_create_process (void) |
static void | windows_resume (struct target_ops *ops, ptid_t ptid, int step, enum gdb_signal sig) |
static BOOL WINAPI | ctrl_c_handler (DWORD event_type) |
static int | get_windows_debug_event (struct target_ops *ops, int pid, struct target_waitstatus *ourstatus) |
static ptid_t | windows_wait (struct target_ops *ops, ptid_t ptid, struct target_waitstatus *ourstatus, int options) |
static void | windows_add_all_dlls (void) |
static void | do_initial_windows_stuff (struct target_ops *ops, DWORD pid, int attaching) |
static int | set_process_privilege (const char *privilege, BOOL enable) |
static void | windows_attach (struct target_ops *ops, const char *args, int from_tty) |
static void | windows_detach (struct target_ops *ops, const char *args, int from_tty) |
static int | windows_get_exec_module_filename (char *exe_name_ret, size_t exe_name_max_len) |
static char * | windows_pid_to_exec_file (struct target_ops *self, int pid) |
static void | windows_files_info (struct target_ops *ignore) |
static void | windows_set_console_info (STARTUPINFO *si, DWORD *flags) |
static int | envvar_cmp (const void *a, const void *b) |
static void | windows_create_inferior (struct target_ops *ops, char *exec_file, char *allargs, char **in_env, int from_tty) |
static void | windows_mourn_inferior (struct target_ops *ops) |
static enum target_xfer_status | windows_xfer_memory (gdb_byte *readbuf, const gdb_byte *writebuf, ULONGEST memaddr, ULONGEST len, ULONGEST *xfered_len) |
static void | windows_close (struct target_ops *self) |
static char * | windows_pid_to_str (struct target_ops *ops, ptid_t ptid) |
static enum target_xfer_status | windows_xfer_shared_libraries (struct target_ops *ops, enum target_object object, const char *annex, gdb_byte *readbuf, const gdb_byte *writebuf, ULONGEST offset, ULONGEST len, ULONGEST *xfered_len) |
static enum target_xfer_status | windows_xfer_partial (struct target_ops *ops, enum target_object object, const char *annex, gdb_byte *readbuf, const gdb_byte *writebuf, ULONGEST offset, ULONGEST len, ULONGEST *xfered_len) |
static int | windows_get_tib_address (struct target_ops *self, ptid_t ptid, CORE_ADDR *addr) |
static ptid_t | windows_get_ada_task_ptid (struct target_ops *self, long lwp, long thread) |
static struct target_ops * | windows_target (void) |
void | _initialize_windows_nat (void) |
void | _initialize_check_for_gdb_ini (void) |
static BOOL WINAPI | bad_DebugActiveProcessStop (DWORD w) |
static BOOL WINAPI | bad_DebugBreakProcess (HANDLE w) |
static BOOL WINAPI | bad_DebugSetProcessKillOnExit (BOOL w) |
static BOOL WINAPI | bad_EnumProcessModules (HANDLE w, HMODULE *x, DWORD y, LPDWORD z) |
static DWORD WINAPI | bad_GetModuleFileNameExA (HANDLE w, HMODULE x, LPSTR y, DWORD z) |
static BOOL WINAPI | bad_GetModuleInformation (HANDLE w, HMODULE x, LPMODULEINFO y, DWORD z) |
static BOOL WINAPI | bad_OpenProcessToken (HANDLE w, DWORD x, PHANDLE y) |
static BOOL WINAPI | bad_GetCurrentConsoleFont (HANDLE w, BOOL bMaxWindow, CONSOLE_FONT_INFO *f) |
static COORD WINAPI | bad_GetConsoleFontSize (HANDLE w, DWORD nFont) |
void | _initialize_loadable (void) |
Variables | |
static BOOL WINAPI(* | AdjustTokenPrivileges )(HANDLE, BOOL, PTOKEN_PRIVILEGES, DWORD, PTOKEN_PRIVILEGES, PDWORD) |
static BOOL WINAPI(* | DebugActiveProcessStop )(DWORD) |
static BOOL WINAPI(* | DebugBreakProcess )(HANDLE) |
static BOOL WINAPI(* | DebugSetProcessKillOnExit )(BOOL) |
static BOOL WINAPI(* | EnumProcessModules )(HANDLE, HMODULE *, DWORD, LPDWORD) |
static BOOL WINAPI(* | GetModuleInformation )(HANDLE, HMODULE, LPMODULEINFO, DWORD) |
static BOOL WINAPI(* | LookupPrivilegeValueA )(LPCSTR, LPCSTR, PLUID) |
static BOOL WINAPI(* | OpenProcessToken )(HANDLE, DWORD, PHANDLE) |
static BOOL WINAPI(* | GetCurrentConsoleFont )(HANDLE, BOOL, CONSOLE_FONT_INFO *) |
static COORD WINAPI(* | GetConsoleFontSize )(HANDLE, DWORD) |
static DWORD WINAPI(* | GetModuleFileNameEx )(HANDLE, HMODULE, LPSTR, DWORD) |
static int | have_saved_context |
static CONTEXT | saved_context |
static uintptr_t | dr [8] |
static int | debug_registers_changed |
static int | debug_registers_used |
static int | windows_initialization_done |
static enum gdb_signal | last_sig = GDB_SIGNAL_0 |
static windows_thread_info | thread_head |
static DEBUG_EVENT | current_event |
static HANDLE | current_process_handle |
static windows_thread_info * | current_thread |
static DWORD | main_thread_id |
static int | exception_count = 0 |
static int | event_count = 0 |
static int | saw_create |
static int | open_process_used = 0 |
static int | new_console = 0 |
static int | new_group = 1 |
static int | debug_exec = 0 |
static int | debug_events = 0 |
static int | debug_memory = 0 |
static int | debug_exceptions = 0 |
static int | useshell = 0 |
static const int * | mappings |
static segment_register_p_ftype * | segment_register_p |
static const struct xlate_exception | xlate [] |
static struct so_list solib_start * | solib_end |
initialize_file_ftype | _initialize_windows_nat |
initialize_file_ftype | _initialize_check_for_gdb_ini |
initialize_file_ftype | _initialize_loadable |
#define __PMAX (MAX_PATH + 1) |
Definition at line 100 of file windows-nat.c.
Referenced by get_image_name(), windows_add_all_dlls(), windows_create_inferior(), windows_make_so(), and windows_pid_to_exec_file().
#define _CYGWIN_SIGNAL_STRING "cYgSiGw00f" |
Definition at line 156 of file windows-nat.c.
Referenced by handle_output_debug_string().
#define AdjustTokenPrivileges dyn_AdjustTokenPrivileges |
Definition at line 69 of file windows-nat.c.
Referenced by _initialize_loadable(), and set_process_privilege().
#define bad_GetModuleFileNameEx bad_GetModuleFileNameExA |
Definition at line 105 of file windows-nat.c.
Referenced by _initialize_loadable().
#define CHECK | ( | x | ) | check (x, __FILE__,__LINE__) |
Definition at line 159 of file windows-nat.c.
Referenced by do_windows_fetch_inferior_registers(), get_windows_debug_event(), windows_add_thread(), windows_continue(), windows_kill_inferior(), windows_mourn_inferior(), windows_resume(), and windows_stop().
#define CONTEXT_DEBUGGER_DR |
Definition at line 142 of file windows-nat.c.
Referenced by do_windows_fetch_inferior_registers().
#define CONTEXT_EXTENDED_REGISTERS 0 |
Definition at line 139 of file windows-nat.c.
#define CreateProcess CreateProcessA |
Definition at line 103 of file windows-nat.c.
Referenced by windows_create_inferior().
#define DEBUG_EVENTS | ( | x | ) | if (debug_events) printf_unfiltered x |
Definition at line 161 of file windows-nat.c.
Referenced by get_windows_debug_event(), handle_load_dll(), handle_unload_dll(), windows_close(), windows_continue(), windows_init_thread_list(), and windows_stop().
#define DEBUG_EXCEPT | ( | x | ) | if (debug_exceptions) printf_unfiltered x |
Definition at line 163 of file windows-nat.c.
Referenced by windows_resume().
#define DEBUG_EXCEPTION_SIMPLE | ( | x | ) |
Definition at line 986 of file windows-nat.c.
Referenced by handle_exception().
#define DEBUG_EXEC | ( | x | ) | if (debug_exec) printf_unfiltered x |
Definition at line 160 of file windows-nat.c.
Referenced by windows_resume().
#define DEBUG_MEM | ( | x | ) | if (debug_memory) printf_unfiltered x |
Definition at line 162 of file windows-nat.c.
Referenced by windows_xfer_memory().
#define DebugActiveProcessStop dyn_DebugActiveProcessStop |
Definition at line 70 of file windows-nat.c.
Referenced by _initialize_loadable(), and windows_detach().
#define DebugBreakProcess dyn_DebugBreakProcess |
Definition at line 71 of file windows-nat.c.
Referenced by _initialize_loadable(), and ctrl_c_handler().
#define DebugSetProcessKillOnExit dyn_DebugSetProcessKillOnExit |
Definition at line 72 of file windows-nat.c.
Referenced by _initialize_loadable(), windows_attach(), and windows_detach().
#define DR6_CLEAR_VALUE 0xffff0ff0 |
Definition at line 151 of file windows-nat.c.
Referenced by windows_add_thread(), windows_continue(), and windows_resume().
#define EnumProcessModules dyn_EnumProcessModules |
Definition at line 73 of file windows-nat.c.
Referenced by _initialize_loadable(), windows_add_all_dlls(), and windows_get_exec_module_filename().
#define GetConsoleFontSize dyn_GetConsoleFontSize |
Definition at line 77 of file windows-nat.c.
Referenced by _initialize_loadable(), and windows_set_console_info().
#define GetCurrentConsoleFont dyn_GetCurrentConsoleFont |
Definition at line 78 of file windows-nat.c.
Referenced by _initialize_loadable(), and windows_set_console_info().
#define GetModuleFileNameEx_name "GetModuleFileNameExA" |
Definition at line 104 of file windows-nat.c.
Referenced by _initialize_loadable().
#define GetModuleInformation dyn_GetModuleInformation |
Definition at line 74 of file windows-nat.c.
Referenced by _initialize_loadable(), and windows_add_all_dlls().
#define LookupPrivilegeValueA dyn_LookupPrivilegeValueA |
Definition at line 75 of file windows-nat.c.
Referenced by _initialize_loadable(), and set_process_privilege().
#define OpenProcessToken dyn_OpenProcessToken |
Definition at line 76 of file windows-nat.c.
Referenced by _initialize_loadable(), and set_process_privilege().
#define STARTUPINFO STARTUPINFOA |
Definition at line 102 of file windows-nat.c.
Referenced by windows_create_inferior().
typedef struct windows_thread_info_struct windows_thread_info |
anonymous enum |
Enumerator | |
---|---|
FLAG_TRACE_BIT |
Definition at line 130 of file windows-nat.c.
void _initialize_check_for_gdb_ini | ( | void | ) |
Definition at line 2682 of file windows-nat.c.
References _, inhibit_gdbinit, warning(), and xsnprintf().
void _initialize_loadable | ( | void | ) |
Definition at line 2782 of file windows-nat.c.
References _, AdjustTokenPrivileges, bad_DebugActiveProcessStop(), bad_DebugBreakProcess(), bad_DebugSetProcessKillOnExit(), bad_EnumProcessModules(), bad_GetConsoleFontSize(), bad_GetCurrentConsoleFont(), bad_GetModuleFileNameEx, bad_GetModuleInformation(), bad_OpenProcessToken(), DebugActiveProcessStop, DebugBreakProcess, DebugSetProcessKillOnExit, EnumProcessModules, GetConsoleFontSize, GetCurrentConsoleFont, GetModuleFileNameEx, GetModuleFileNameEx_name, GetModuleInformation, LookupPrivilegeValueA, OpenProcessToken, and warning().
void _initialize_windows_nat | ( | void | ) |
Definition at line 2518 of file windows-nat.c.
References _, add_cmd(), add_setshow_boolean_cmd(), add_target(), class_info, class_support, cygwin_get_dr(), cygwin_get_dr6(), cygwin_get_dr7(), cygwin_set_dr(), cygwin_set_dr7(), debug_events, debug_exceptions, debug_exec, debug_memory, display_selectors(), x86_dr_low_type::get_addr, x86_dr_low_type::get_control, x86_dr_low_type::get_status, info_w32_cmdlist, init_w32_command_list(), new_console, new_group, x86_dr_low_type::set_addr, x86_dr_low_type::set_control, setlist, showlist, useshell, windows_target(), x86_dr_low, and x86_use_watchpoints().
|
static |
Definition at line 2714 of file windows-nat.c.
Referenced by _initialize_loadable().
|
static |
Definition at line 2719 of file windows-nat.c.
Referenced by _initialize_loadable().
Definition at line 2724 of file windows-nat.c.
Referenced by _initialize_loadable().
|
static |
Definition at line 2729 of file windows-nat.c.
Referenced by _initialize_loadable().
|
static |
Definition at line 2767 of file windows-nat.c.
References size.
Referenced by _initialize_loadable().
|
static |
Definition at line 2761 of file windows-nat.c.
Referenced by _initialize_loadable().
|
static |
Definition at line 2742 of file windows-nat.c.
|
static |
Definition at line 2749 of file windows-nat.c.
Referenced by _initialize_loadable().
|
static |
Definition at line 2755 of file windows-nat.c.
Referenced by _initialize_loadable().
Definition at line 284 of file windows-nat.c.
References printf_filtered().
Referenced by i386_skip_noop(), i387_collect_xsave(), and load_progress().
|
static |
Definition at line 1302 of file windows-nat.c.
References _, inferior::attach_flag, current_inferior(), current_process_handle, DebugBreakProcess, new_console, and warning().
Referenced by windows_wait().
Definition at line 2639 of file windows-nat.c.
References dr.
Referenced by _initialize_windows_nat().
|
static |
Definition at line 2648 of file windows-nat.c.
References dr.
Referenced by _initialize_windows_nat().
|
static |
Definition at line 2658 of file windows-nat.c.
References dr.
Referenced by _initialize_windows_nat().
Definition at line 2615 of file windows-nat.c.
References _, debug_registers_changed, debug_registers_used, dr, and internal_error().
Referenced by _initialize_windows_nat().
|
static |
Definition at line 2629 of file windows-nat.c.
References debug_registers_changed, debug_registers_used, and dr.
Referenced by _initialize_windows_nat().
|
static |
Definition at line 872 of file windows-nat.c.
References err, if(), printf_filtered(), and puts_filtered().
Referenced by display_selectors().
|
static |
Definition at line 948 of file windows-nat.c.
References windows_thread_info_struct::context, display_selector(), windows_thread_info_struct::h, parse_and_eval_long(), printf_filtered(), and puts_filtered().
Referenced by _initialize_windows_nat().
|
static |
Definition at line 1643 of file windows-nat.c.
References inferior::attach_flag, clear_proceed_status(), inferior::control, current_event, current_inferior(), debug_registers_changed, debug_registers_used, disable_breakpoints_in_shlibs(), dr, event_count, exception_count, arm-linux::inf, inferior_appeared(), inferior_ptid, inferior_thread(), init_wait_for_inferior(), last_sig, NO_STOP_QUIETLY, open_process_used, pid, pid_to_ptid(), push_target(), resume(), stop_after_trap, STOP_QUIETLY, thread_suspend_state::stop_signal, inferior_control_state::stop_soon, thread_info::suspend, target_is_pushed(), target_terminal_inferior(), target_terminal_init(), wait_for_inferior(), windows_add_all_dlls(), windows_clear_solib(), and windows_initialization_done.
Referenced by windows_attach(), and windows_create_inferior().
Definition at line 425 of file windows-nat.c.
References CHECK, windows_thread_info_struct::context, CONTEXT_DEBUGGER_DR, context_offset, current_thread, debug_registers_changed, dr, gdbarch_num_regs(), gdbarch_tdep(), get_regcache_arch(), windows_thread_info_struct::h, have_saved_context, I387_FISEG_REGNUM, I387_FOP_REGNUM, mappings, regcache_raw_supply(), windows_thread_info_struct::reload_context, saved_context, and segment_register_p.
Referenced by windows_fetch_inferior_registers().
Definition at line 510 of file windows-nat.c.
References windows_thread_info_struct::context, gdbarch_num_regs(), get_regcache_arch(), mappings, and regcache_raw_collect().
Referenced by windows_store_inferior_registers().
Definition at line 1996 of file windows-nat.c.
Referenced by windows_create_inferior().
|
static |
Definition at line 1183 of file windows-nat.c.
References _, current_event, current_process_handle, error(), main_thread_id, open_process_used, ptid_build(), and windows_add_thread().
Referenced by get_windows_debug_event().
|
static |
Definition at line 667 of file windows-nat.c.
References __PMAX, len, and size.
Referenced by handle_load_dll().
|
static |
Definition at line 1326 of file windows-nat.c.
References _, inferior::attach_flag, BOOL, catch_errors(), CHECK, current_event, current_process_handle, DEBUG_EVENTS, error(), event_count, fake_create_process(), find_inferior_pid(), handle_exception(), handle_load_dll(), handle_output_debug_string(), handle_unload_dll(), have_saved_context, arm-linux::inf, inferior_ptid, target_waitstatus::integer, target_waitstatus::kind, last_sig, main_thread_id, minus_one_ptid, printf_unfiltered(), ptid_build(), RETURN_MASK_ALL, saw_create, target_mourn_inferior(), target_terminal_ours(), TARGET_WAITKIND_EXITED, TARGET_WAITKIND_LOADED, TARGET_WAITKIND_SPURIOUS, thread_rec(), target_waitstatus::value, windows_add_thread(), windows_continue(), windows_delete_thread(), windows_initialization_done, and windows_resume().
Referenced by windows_wait().
|
static |
Definition at line 992 of file windows-nat.c.
References code, current_event, DEBUG_EXCEPTION_SIMPLE, exception_count, find_pc_partial_function(), host_address_to_string(), target_waitstatus::kind, last_sig, printf_unfiltered(), target_waitstatus::sig, startswith(), TARGET_WAITKIND_STOPPED, thread_rec(), and target_waitstatus::value.
Referenced by get_windows_debug_event().
|
static |
Definition at line 724 of file windows-nat.c.
References current_event, current_process_handle, DEBUG_EVENTS, get_image_name(), host_address_to_string(), so_list::lm_info, lm_info::load_addr, so_list::next, so_list::so_name, and windows_make_so().
Referenced by get_windows_debug_event().
|
static |
Definition at line 809 of file windows-nat.c.
References _CYGWIN_SIGNAL_STRING, current_event, current_process_handle, gdb_signal_from_host(), have_saved_context, target_waitstatus::kind, main_thread_id, saved_context, target_waitstatus::sig, startswith(), target_read_string(), TARGET_WAITKIND_STOPPED, target_waitstatus::value, warning(), and xfree().
Referenced by get_windows_debug_event().
|
static |
Definition at line 765 of file windows-nat.c.
References _, complaint(), current_event, DEBUG_EVENTS, host_address_to_string(), so_list::lm_info, lm_info::load_addr, so_list::next, so_list::so_name, symfile_complaints, and windows_free_so().
Referenced by get_windows_debug_event().
Definition at line 1726 of file windows-nat.c.
References AdjustTokenPrivileges, LookupPrivilegeValueA, OpenProcessToken, and size.
Referenced by windows_attach().
|
static |
Definition at line 295 of file windows-nat.c.
References _, current_event, err, windows_thread_info_struct::h, windows_thread_info_struct::id, windows_thread_info_struct::next, windows_thread_info_struct::reload_context, windows_thread_info_struct::suspended, and warning().
Referenced by get_windows_debug_event(), handle_exception(), windows_add_thread(), windows_fetch_inferior_registers(), windows_get_tib_address(), windows_resume(), windows_store_inferior_registers(), and windows_thread_alive().
|
static |
Definition at line 1595 of file windows-nat.c.
References __PMAX, current_process_handle, EnumProcessModules, GetModuleFileNameEx, GetModuleInformation, int, name, so_list::next, and windows_make_so().
Referenced by do_initial_windows_stuff().
|
static |
Definition at line 338 of file windows-nat.c.
References add_thread(), CHECK, windows_thread_info_struct::context, debug_registers_used, dr, DR6_CLEAR_VALUE, gdb_assert, windows_thread_info_struct::h, windows_thread_info_struct::id, windows_thread_info_struct::next, ptid_get_tid(), windows_thread_info_struct::thread_local_base, and thread_rec().
Referenced by fake_create_process(), and get_windows_debug_event().
|
static |
Definition at line 1770 of file windows-nat.c.
References _, BOOL, DebugSetProcessKillOnExit, do_initial_windows_stuff(), error(), gdb_flush(), gdb_stdout, get_exec_file(), parse_pid_to_attach(), pid, pid_to_ptid(), printf_unfiltered(), saw_create, set_process_privilege(), target_pid_to_str(), target_terminal_ours(), and windows_init_thread_list().
Referenced by windows_target().
|
static |
Definition at line 799 of file windows-nat.c.
Referenced by do_initial_windows_stuff().
|
static |
Definition at line 2378 of file windows-nat.c.
References DEBUG_EVENTS, inferior_ptid, and ptid_get_pid().
Referenced by windows_target().
Definition at line 1122 of file windows-nat.c.
References _, BOOL, CHECK, windows_thread_info_struct::context, current_event, DEBUG_EVENTS, debug_registers_changed, dr, DR6_CLEAR_VALUE, error(), windows_thread_info_struct::h, windows_thread_info_struct::id, windows_thread_info_struct::next, status, and windows_thread_info_struct::suspended.
Referenced by get_windows_debug_event(), windows_kill_inferior(), windows_mourn_inferior(), and windows_resume().
|
static |
Definition at line 2032 of file windows-nat.c.
References _, __PMAX, inferior::args, BOOL, CreateProcess, do_initial_windows_stuff(), environ, envvar_cmp(), error(), flags, get_inferior_io_terminal(), L, len, new_console, new_group, O_NOCTTY, print_sys_errmsg(), qsort, saw_create, STARTUPINFO, useshell, warning(), windows_init_thread_list(), windows_set_console_info(), and xsnprintf().
Referenced by windows_target().
|
static |
Definition at line 395 of file windows-nat.c.
References _, delete_thread(), gdb_assert, windows_thread_info_struct::id, info_verbose, main_thread_id, windows_thread_info_struct::next, print_thread_events, printf_unfiltered(), ptid_get_tid(), target_pid_to_str(), and xfree().
Referenced by get_windows_debug_event().
|
static |
Definition at line 1823 of file windows-nat.c.
References _, current_event, DebugActiveProcessStop, DebugSetProcessKillOnExit, detach_inferior(), error(), gdb_flush(), gdb_stdout, get_exec_file(), inf_child_maybe_unpush_target(), inferior_ptid, null_ptid, printf_unfiltered(), windows_resume(), and x86_cleanup_dregs().
Referenced by windows_target().
|
static |
Definition at line 499 of file windows-nat.c.
References do_windows_fetch_inferior_registers(), inferior_ptid, ptid_get_tid(), and thread_rec().
Referenced by windows_resume(), and windows_target().
|
static |
Definition at line 1938 of file windows-nat.c.
References inferior::attach_flag, current_inferior(), inferior_ptid, printf_unfiltered(), and target_pid_to_str().
Referenced by windows_target().
|
static |
Definition at line 749 of file windows-nat.c.
References so_list::lm_info, and xfree().
Referenced by handle_unload_dll().
|
static |
Definition at line 2481 of file windows-nat.c.
References inferior_ptid, ptid_build(), and ptid_get_pid().
Referenced by windows_target().
|
static |
Definition at line 1866 of file windows-nat.c.
References _, current_process_handle, EnumProcessModules, error(), GetModuleFileNameEx, and len.
Referenced by windows_pid_to_exec_file().
|
static |
Definition at line 2465 of file windows-nat.c.
References ptid_get_tid(), windows_thread_info_struct::thread_local_base, and thread_rec().
Referenced by windows_target().
|
static |
Definition at line 378 of file windows-nat.c.
References DEBUG_EVENTS, init_thread_list(), windows_thread_info_struct::next, thread_head, and xfree().
Referenced by windows_attach(), and windows_create_inferior().
|
static |
Definition at line 2360 of file windows-nat.c.
References CHECK, current_event, current_process_handle, target_mourn_inferior(), and windows_continue().
Referenced by windows_target(), and windows_wait().
Definition at line 558 of file windows-nat.c.
References _, __PMAX, error(), gdb_bfd_open(), gdb_bfd_unref(), L, so_list::lm_info, lm_info::load_addr, so_list::so_name, SO_NAME_MAX_PATH_SIZE, so_list::so_original_name, and xmalloc().
Referenced by handle_load_dll(), and windows_add_all_dlls().
|
static |
Definition at line 2296 of file windows-nat.c.
References CHECK, current_process_handle, inf_child_mourn_inferior(), open_process_used, windows_continue(), and x86_cleanup_dregs().
Referenced by windows_target().
|
static |
Definition at line 1910 of file windows-nat.c.
References __PMAX, windows_get_exec_module_filename(), and xsnprintf().
Referenced by windows_target().
|
static |
Definition at line 2386 of file windows-nat.c.
References normal_pid_to_str(), ptid_get_pid(), and ptid_get_tid().
Referenced by windows_target().
|
static |
Definition at line 1205 of file windows-nat.c.
References CHECK, windows_thread_info_struct::context, current_event, DEBUG_EXCEPT, DEBUG_EXEC, debug_registers_changed, dr, DR6_CLEAR_VALUE, FLAG_TRACE_BIT, gdbarch_ps_regnum(), get_current_regcache(), get_regcache_arch(), windows_thread_info_struct::h, inferior_ptid, last_sig, minus_one_ptid, ptid_equal(), ptid_get_pid(), ptid_get_tid(), xlate_exception::them, thread_rec(), windows_continue(), and windows_fetch_inferior_registers().
Referenced by get_windows_debug_event(), windows_detach(), and windows_target().
|
static |
Definition at line 1961 of file windows-nat.c.
References GetConsoleFontSize, and GetCurrentConsoleFont.
Referenced by windows_create_inferior().
Definition at line 270 of file windows-nat.c.
References mappings.
Referenced by _initialize_amd64_windows_nat(), and _initialize_i386_windows_nat().
void windows_set_segment_register_p | ( | segment_register_p_ftype * | fun | ) |
Definition at line 278 of file windows-nat.c.
References segment_register_p.
Referenced by _initialize_amd64_windows_nat(), and _initialize_i386_windows_nat().
|
static |
Definition at line 2312 of file windows-nat.c.
References CHECK, current_event, DEBUG_EVENTS, and registers_changed().
Referenced by windows_target().
|
static |
Definition at line 526 of file windows-nat.c.
References do_windows_store_inferior_registers(), inferior_ptid, ptid_get_tid(), and thread_rec().
Referenced by windows_target().
|
static |
Definition at line 2487 of file windows-nat.c.
References inf_child_target(), target_ops::to_attach, target_ops::to_attach_no_wait, target_ops::to_close, target_ops::to_create_inferior, target_ops::to_detach, target_ops::to_fetch_registers, target_ops::to_files_info, target_ops::to_get_ada_task_ptid, target_ops::to_get_tib_address, target_ops::to_kill, target_ops::to_mourn_inferior, target_ops::to_pid_to_exec_file, target_ops::to_pid_to_str, target_ops::to_resume, target_ops::to_stop, target_ops::to_store_registers, target_ops::to_thread_alive, target_ops::to_wait, target_ops::to_xfer_partial, windows_attach(), windows_close(), windows_create_inferior(), windows_detach(), windows_fetch_inferior_registers(), windows_files_info(), windows_get_ada_task_ptid(), windows_get_tib_address(), windows_kill_inferior(), windows_mourn_inferior(), windows_pid_to_exec_file(), windows_pid_to_str(), windows_resume(), windows_stop(), windows_store_inferior_registers(), windows_thread_alive(), windows_wait(), and windows_xfer_partial().
Referenced by _initialize_windows_nat().
|
static |
Definition at line 2667 of file windows-nat.c.
References gdb_assert, ptid_get_tid(), and thread_rec().
Referenced by windows_target().
|
static |
Definition at line 1529 of file windows-nat.c.
References ctrl_c_handler(), current_event, deprecated_ui_loop_hook, get_windows_debug_event(), pid, ptid_build(), target_terminal_ours(), and windows_kill_inferior().
Referenced by windows_target().
|
static |
Definition at line 2323 of file windows-nat.c.
References BOOL, core_addr_to_string(), current_process_handle, DEBUG_MEM, pulongest(), TARGET_XFER_E_IO, and TARGET_XFER_OK.
Referenced by windows_xfer_partial().
|
static |
Definition at line 2440 of file windows-nat.c.
References target_ops::beneath, TARGET_OBJECT_LIBRARIES, TARGET_OBJECT_MEMORY, target_ops::to_xfer_partial, windows_xfer_memory(), and windows_xfer_shared_libraries().
Referenced by windows_target().
|
static |
Definition at line 2401 of file windows-nat.c.
References so_list::lm_info, lm_info::load_addr, so_list::next, obstack_grow_str, obstack_grow_str0, offset, so_list::so_name, target_gdbarch(), TARGET_XFER_E_IO, TARGET_XFER_EOF, TARGET_XFER_OK, and windows_xfer_shared_library().
Referenced by windows_xfer_partial().
initialize_file_ftype _initialize_check_for_gdb_ini |
initialize_file_ftype _initialize_loadable |
initialize_file_ftype _initialize_windows_nat |
|
static |
Definition at line 80 of file windows-nat.c.
|
static |
Definition at line 198 of file windows-nat.c.
Referenced by do_initial_windows_stuff(), fake_create_process(), get_windows_debug_event(), handle_exception(), handle_load_dll(), handle_output_debug_string(), handle_unload_dll(), thread_rec(), windows_continue(), windows_detach(), windows_kill_inferior(), windows_resume(), windows_stop(), and windows_wait().
|
static |
Definition at line 200 of file windows-nat.c.
Referenced by ctrl_c_handler(), fake_create_process(), get_windows_debug_event(), handle_load_dll(), handle_output_debug_string(), windows_add_all_dlls(), windows_get_exec_module_filename(), windows_kill_inferior(), windows_mourn_inferior(), and windows_xfer_memory().
|
static |
Definition at line 201 of file windows-nat.c.
Referenced by do_all_continuations_ptid(), do_captured_list_thread_ids(), do_windows_fetch_inferior_registers(), i386_darwin_dr_get(), i386_darwin_dr_set(), i386_darwin_fetch_inferior_registers(), i386_darwin_store_inferior_registers(), and print_thread_info().
|
static |
Definition at line 217 of file windows-nat.c.
Referenced by _initialize_windows_nat().
|
static |
Definition at line 219 of file windows-nat.c.
Referenced by _initialize_windows_nat().
|
static |
Definition at line 216 of file windows-nat.c.
Referenced by _initialize_windows_nat().
|
static |
Definition at line 218 of file windows-nat.c.
Referenced by _initialize_windows_nat().
|
static |
Definition at line 147 of file windows-nat.c.
Referenced by cygwin_set_dr(), cygwin_set_dr7(), do_initial_windows_stuff(), do_windows_fetch_inferior_registers(), windows_continue(), and windows_resume().
|
static |
Definition at line 148 of file windows-nat.c.
Referenced by cygwin_set_dr(), cygwin_set_dr7(), do_initial_windows_stuff(), and windows_add_thread().
|
static |
Definition at line 82 of file windows-nat.c.
|
static |
Definition at line 83 of file windows-nat.c.
Definition at line 84 of file windows-nat.c.
|
static |
Definition at line 146 of file windows-nat.c.
Referenced by cygwin_get_dr(), cygwin_get_dr6(), cygwin_get_dr7(), cygwin_set_dr(), cygwin_set_dr7(), do_initial_windows_stuff(), do_windows_fetch_inferior_registers(), windows_add_thread(), windows_continue(), and windows_resume().
|
static |
Definition at line 85 of file windows-nat.c.
|
static |
Definition at line 206 of file windows-nat.c.
Referenced by do_initial_windows_stuff(), and get_windows_debug_event().
|
static |
Definition at line 205 of file windows-nat.c.
Referenced by do_initial_windows_stuff(), and handle_exception().
|
static |
Definition at line 93 of file windows-nat.c.
Definition at line 91 of file windows-nat.c.
|
static |
Definition at line 101 of file windows-nat.c.
Referenced by _initialize_loadable(), windows_add_all_dlls(), and windows_get_exec_module_filename().
|
static |
Definition at line 87 of file windows-nat.c.
|
static |
Definition at line 121 of file windows-nat.c.
Referenced by do_windows_fetch_inferior_registers(), get_windows_debug_event(), and handle_output_debug_string().
|
static |
Definition at line 175 of file windows-nat.c.
Referenced by do_initial_windows_stuff(), get_windows_debug_event(), handle_exception(), and windows_resume().
|
static |
Definition at line 89 of file windows-nat.c.
|
static |
Definition at line 202 of file windows-nat.c.
Referenced by fake_create_process(), get_windows_debug_event(), handle_output_debug_string(), and windows_delete_thread().
Definition at line 240 of file windows-nat.c.
Referenced by do_windows_fetch_inferior_registers(), do_windows_store_inferior_registers(), and windows_set_context_register_offsets().
|
static |
Definition at line 211 of file windows-nat.c.
Referenced by _initialize_windows_nat(), ctrl_c_handler(), and windows_create_inferior().
|
static |
Definition at line 215 of file windows-nat.c.
Referenced by _initialize_windows_nat(), and windows_create_inferior().
|
static |
Definition at line 208 of file windows-nat.c.
Referenced by do_initial_windows_stuff(), fake_create_process(), and windows_mourn_inferior().
|
static |
Definition at line 90 of file windows-nat.c.
|
static |
Definition at line 123 of file windows-nat.c.
Referenced by do_windows_fetch_inferior_registers(), and handle_output_debug_string().
|
static |
Definition at line 207 of file windows-nat.c.
Referenced by get_windows_debug_event(), windows_attach(), and windows_create_inferior().
|
static |
Definition at line 244 of file windows-nat.c.
Referenced by do_windows_fetch_inferior_registers(), and windows_set_segment_register_p().
|
static |
Definition at line 555 of file windows-nat.c.
|
static |
Definition at line 194 of file windows-nat.c.
Referenced by windows_init_thread_list().
|
static |
Definition at line 220 of file windows-nat.c.
Referenced by _initialize_windows_nat(), and windows_create_inferior().
|
static |
Definition at line 150 of file windows-nat.c.
Referenced by do_initial_windows_stuff(), and get_windows_debug_event().
|
static |
Definition at line 256 of file windows-nat.c.