GDB (xrefs)
|
#include "windows-nat.h"
Public Member Functions | |
virtual windows_thread_info * | thread_rec (ptid_t ptid, thread_disposition_type disposition)=0 |
virtual int | handle_output_debug_string (struct target_waitstatus *ourstatus)=0 |
virtual void | handle_load_dll (const char *dll_name, LPVOID base)=0 |
virtual void | handle_unload_dll ()=0 |
virtual bool | handle_access_violation (const EXCEPTION_RECORD *rec)=0 |
handle_exception_result | handle_exception (struct target_waitstatus *ourstatus, bool debug_exceptions) |
void | dll_loaded_event () |
void | add_all_dlls () |
bool | matching_pending_stop (bool debug_events) |
gdb::optional< pending_stop > | fetch_pending_stop (bool debug_events) |
const char * | pid_to_exec_file (int) |
Public Attributes | |
HANDLE | handle = 0 |
DWORD | main_thread_id = 0 |
enum gdb_signal | last_sig = GDB_SIGNAL_0 |
DEBUG_EVENT | current_event {} |
DWORD | desired_stop_thread_id = -1 |
std::vector< pending_stop > | pending_stops |
EXCEPTION_RECORD | siginfo_er {} |
Private Member Functions | |
bool | handle_ms_vc_exception (const EXCEPTION_RECORD *rec) |
void | add_dll (LPVOID load_addr) |
int | get_exec_module_filename (char *exe_name_ret, size_t exe_name_max_len) |
Definition at line 143 of file windows-nat.h.
void windows_nat::windows_process_info::add_all_dlls | ( | ) |
Definition at line 670 of file windows-nat.c.
References add_dll().
Referenced by windows_nat_target::do_initial_windows_stuff().
|
private |
Definition at line 522 of file windows-nat.c.
References windows_nat::EnumProcessModules, EnumProcessModulesEx, GetModuleFileNameEx, windows_nat::GetModuleInformation, handle, handle_load_dll(), name, and UINT.
Referenced by add_all_dlls(), and dll_loaded_event().
void windows_nat::windows_process_info::dll_loaded_event | ( | ) |
Definition at line 645 of file windows-nat.c.
References add_dll(), current_event, windows_nat::get_image_name(), handle, and handle_load_dll().
Referenced by windows_nat_target::get_windows_debug_event().
gdb::optional< pending_stop > windows_nat::windows_process_info::fetch_pending_stop | ( | bool | debug_events | ) |
Definition at line 702 of file windows-nat.c.
References current_event, DEBUG_EVENTS, desired_stop_thread_id, and pending_stops.
Referenced by windows_nat_target::get_windows_debug_event().
|
private |
Definition at line 168 of file windows-nat.c.
References windows_nat::EnumProcessModules, EnumProcessModulesEx, err, GetModuleFileNameEx, and handle.
Referenced by pid_to_exec_file().
|
pure virtual |
Implemented in windows_per_inferior.
Referenced by handle_exception().
handle_exception_result windows_nat::windows_process_info::handle_exception | ( | struct target_waitstatus * | ourstatus, |
bool | debug_exceptions ) |
Definition at line 359 of file windows-nat.c.
References code, current_event, DEBUG_EXCEPTION_SIMPLE, windows_nat::DONT_SUSPEND, handle_access_violation(), windows_nat::HANDLE_EXCEPTION_HANDLED, windows_nat::HANDLE_EXCEPTION_IGNORED, windows_nat::HANDLE_EXCEPTION_UNHANDLED, handle_ms_vc_exception(), target_waitstatus::kind(), last_sig, MS_VC_EXCEPTION, target_waitstatus::set_spurious(), target_waitstatus::set_stopped(), target_waitstatus::sig, siginfo_er, STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP, TARGET_WAITKIND_STOPPED, and thread_rec().
Referenced by windows_nat_target::get_windows_debug_event().
|
pure virtual |
Implemented in windows_per_inferior.
Referenced by add_dll(), and dll_loaded_event().
|
private |
Definition at line 316 of file windows-nat.c.
References current_event, windows_nat::DONT_INVALIDATE_CONTEXT, windows_nat::windows_thread_info::name, target_read_string(), thread_name(), and thread_rec().
Referenced by handle_exception().
|
pure virtual |
Implemented in windows_per_inferior.
|
pure virtual |
Implemented in windows_per_inferior.
bool windows_nat::windows_process_info::matching_pending_stop | ( | bool | debug_events | ) |
Definition at line 678 of file windows-nat.c.
References DEBUG_EVENTS, desired_stop_thread_id, and pending_stops.
Referenced by windows_nat_target::windows_continue().
const char * windows_nat::windows_process_info::pid_to_exec_file | ( | int | pid | ) |
Definition at line 231 of file windows-nat.c.
References get_exec_module_filename(), and pid.
Referenced by windows_nat_target::pid_to_exec_file().
|
pure virtual |
Implemented in windows_per_inferior.
Referenced by handle_exception(), and handle_ms_vc_exception().
DEBUG_EVENT windows_nat::windows_process_info::current_event {} |
Definition at line 152 of file windows-nat.h.
Referenced by windows_nat_target::detach(), dll_loaded_event(), windows_nat_target::do_initial_windows_stuff(), windows_nat_target::fake_create_process(), fetch_pending_stop(), windows_nat_target::get_windows_debug_event(), handle_exception(), handle_ms_vc_exception(), windows_per_inferior::handle_output_debug_string(), windows_per_inferior::handle_unload_dll(), windows_nat_target::kill(), windows_nat_target::resume(), windows_per_inferior::thread_rec(), and windows_nat_target::wait().
DWORD windows_nat::windows_process_info::desired_stop_thread_id = -1 |
Definition at line 157 of file windows-nat.h.
Referenced by fetch_pending_stop(), windows_nat_target::get_windows_debug_event(), matching_pending_stop(), and windows_nat_target::windows_continue().
HANDLE windows_nat::windows_process_info::handle = 0 |
Definition at line 146 of file windows-nat.h.
Referenced by add_dll(), dll_loaded_event(), windows_nat_target::fake_create_process(), get_exec_module_filename(), windows_nat_target::get_windows_debug_event(), windows_per_inferior::handle_output_debug_string(), windows_nat_target::interrupt(), windows_nat_target::kill(), windows_nat_target::mourn_inferior(), and windows_xfer_memory().
enum gdb_signal windows_nat::windows_process_info::last_sig = GDB_SIGNAL_0 |
Definition at line 148 of file windows-nat.h.
Referenced by windows_nat_target::do_initial_windows_stuff(), windows_nat_target::get_windows_debug_event(), handle_exception(), and windows_nat_target::resume().
DWORD windows_nat::windows_process_info::main_thread_id = 0 |
Definition at line 147 of file windows-nat.h.
std::vector<pending_stop> windows_nat::windows_process_info::pending_stops |
Definition at line 168 of file windows-nat.h.
Referenced by fetch_pending_stop(), windows_nat_target::get_windows_debug_event(), and matching_pending_stop().
EXCEPTION_RECORD windows_nat::windows_process_info::siginfo_er {} |
Definition at line 171 of file windows-nat.h.
Referenced by handle_exception(), windows_nat_target::mourn_inferior(), and windows_xfer_siginfo().