GDB (xrefs)
|
Public Member Functions | |
windows_nat_target () | |
void | close () override |
void | attach (const char *, int) override |
bool | attach_no_wait () override |
void | detach (inferior *, int) override |
void | resume (ptid_t, int, enum gdb_signal) override |
ptid_t | wait (ptid_t, struct target_waitstatus *, target_wait_flags) override |
void | fetch_registers (struct regcache *, int) override |
void | store_registers (struct regcache *, int) override |
bool | stopped_by_sw_breakpoint () override |
bool | supports_stopped_by_sw_breakpoint () override |
enum target_xfer_status | xfer_partial (enum target_object object, const char *annex, gdb_byte *readbuf, const gdb_byte *writebuf, ULONGEST offset, ULONGEST len, ULONGEST *xfered_len) override |
void | files_info () override |
void | kill () override |
void | create_inferior (const char *, const std::string &, char **, int) override |
void | mourn_inferior () override |
bool | thread_alive (ptid_t ptid) override |
std::string | pid_to_str (ptid_t) override |
void | interrupt () override |
void | pass_ctrlc () override |
const char * | pid_to_exec_file (int pid) override |
ptid_t | get_ada_task_ptid (long lwp, ULONGEST thread) override |
bool | get_tib_address (ptid_t ptid, CORE_ADDR *addr) override |
const char * | thread_name (struct thread_info *) override |
ptid_t | get_windows_debug_event (int pid, struct target_waitstatus *ourstatus, target_wait_flags options) |
void | do_initial_windows_stuff (DWORD pid, bool attaching) |
bool | supports_disable_randomization () override |
bool | can_async_p () override |
bool | is_async_p () override |
void | async (bool enable) override |
int | async_wait_fd () override |
![]() | |
int | can_use_hw_breakpoint (enum bptype type, int cnt, int othertype) override |
int | region_ok_for_hw_watchpoint (CORE_ADDR addr, int len) override |
int | insert_watchpoint (CORE_ADDR addr, int len, enum target_hw_bp_type type, struct expression *cond) override |
int | remove_watchpoint (CORE_ADDR addr, int len, enum target_hw_bp_type type, struct expression *cond) override |
int | insert_hw_breakpoint (struct gdbarch *gdbarch, struct bp_target_info *bp_tgt) override |
int | remove_hw_breakpoint (struct gdbarch *gdbarch, struct bp_target_info *bp_tgt) override |
bool | stopped_by_watchpoint () override |
bool | stopped_data_address (CORE_ADDR *addr_p) override |
bool | stopped_by_hw_breakpoint () override |
![]() | |
inf_child_target ()=default | |
~inf_child_target () override=0 | |
const target_info & | info () const override |
void | disconnect (const char *, int) override |
void | prepare_to_store (struct regcache *) override |
bool | supports_terminal_ours () override |
void | terminal_init () override |
void | terminal_inferior () override |
void | terminal_save_inferior () override |
void | terminal_ours_for_output () override |
void | terminal_ours () override |
void | terminal_info (const char *, int) override |
void | follow_exec (inferior *follow_inf, ptid_t ptid, const char *execd_pathname) override |
bool | can_run () override |
bool | can_create_inferior () override |
bool | can_attach () override |
void | post_attach (int) override |
int | fileio_open (struct inferior *inf, const char *filename, int flags, int mode, int warn_if_slow, fileio_error *target_errno) override |
int | fileio_pwrite (int fd, const gdb_byte *write_buf, int len, ULONGEST offset, fileio_error *target_errno) override |
int | fileio_pread (int fd, gdb_byte *read_buf, int len, ULONGEST offset, fileio_error *target_errno) override |
int | fileio_fstat (int fd, struct stat *sb, fileio_error *target_errno) override |
int | fileio_close (int fd, fileio_error *target_errno) override |
int | fileio_unlink (struct inferior *inf, const char *filename, fileio_error *target_errno) override |
gdb::optional< std::string > | fileio_readlink (struct inferior *inf, const char *filename, fileio_error *target_errno) override |
bool | use_agent (bool use) override |
bool | can_use_agent () override |
![]() | |
int | insert_breakpoint (struct gdbarch *gdbarch, struct bp_target_info *bp_tgt) override |
int | remove_breakpoint (struct gdbarch *gdbarch, struct bp_target_info *bp_tgt, enum remove_bp_reason reason) override |
![]() | |
~process_stratum_target () override=0 | |
strata | stratum () const final override |
virtual const char * | connection_string () |
bool | supports_non_stop () override |
struct address_space * | thread_address_space (ptid_t ptid) override |
struct gdbarch * | thread_architecture (ptid_t ptid) override |
bool | has_all_memory () override |
bool | has_memory () override |
bool | has_stack () override |
bool | has_registers () override |
bool | has_execution (inferior *inf) override |
void | follow_exec (inferior *follow_inf, ptid_t ptid, const char *execd_pathname) override |
void | follow_fork (inferior *child_inf, ptid_t child_ptid, target_waitkind fork_kind, bool follow_child, bool detach_on_fork) override |
void | maybe_add_resumed_with_pending_wait_status (thread_info *thread) |
void | maybe_remove_resumed_with_pending_wait_status (thread_info *thread) |
bool | has_resumed_with_pending_wait_status () const |
thread_info * | random_resumed_with_pending_wait_status (inferior *inf, ptid_t filter_ptid) |
thread_info * | find_thread (ptid_t ptid) |
![]() | |
target_ops * | beneath () const |
virtual | ~target_ops () |
const char * | shortname () const |
const char * | longname () const |
virtual void | resume (ptid_t, int TARGET_DEBUG_PRINTER(target_debug_print_step), enum gdb_signal) TARGET_DEFAULT_NORETURN(noprocess()) |
virtual void | commit_resumed () TARGET_DEFAULT_IGNORE() |
virtual bool | supports_stopped_by_hw_breakpoint () TARGET_DEFAULT_RETURN(false) |
virtual int | ranged_break_num_registers () TARGET_DEFAULT_RETURN(-1) |
virtual int | insert_mask_watchpoint (CORE_ADDR, CORE_ADDR, enum target_hw_bp_type) TARGET_DEFAULT_RETURN(1) |
virtual int | remove_mask_watchpoint (CORE_ADDR, CORE_ADDR, enum target_hw_bp_type) TARGET_DEFAULT_RETURN(1) |
virtual bool | have_steppable_watchpoint () TARGET_DEFAULT_RETURN(false) |
virtual bool | watchpoint_addr_within_range (CORE_ADDR, CORE_ADDR, int) TARGET_DEFAULT_FUNC(default_watchpoint_addr_within_range) |
virtual bool | can_accel_watchpoint_condition (CORE_ADDR, int, int, struct expression *) TARGET_DEFAULT_RETURN(false) |
virtual int | masked_watch_num_registers (CORE_ADDR, CORE_ADDR) TARGET_DEFAULT_RETURN(-1) |
virtual int | can_do_single_step () TARGET_DEFAULT_RETURN(-1) |
virtual void | load (const char *, int) TARGET_DEFAULT_NORETURN(tcomplain()) |
virtual int | insert_fork_catchpoint (int) TARGET_DEFAULT_RETURN(1) |
virtual int | remove_fork_catchpoint (int) TARGET_DEFAULT_RETURN(1) |
virtual int | insert_vfork_catchpoint (int) TARGET_DEFAULT_RETURN(1) |
virtual int | remove_vfork_catchpoint (int) TARGET_DEFAULT_RETURN(1) |
virtual int | insert_exec_catchpoint (int) TARGET_DEFAULT_RETURN(1) |
virtual int | remove_exec_catchpoint (int) TARGET_DEFAULT_RETURN(1) |
virtual int | set_syscall_catchpoint (int, bool, int, gdb::array_view< const int >) TARGET_DEFAULT_RETURN(1) |
virtual void | pass_signals (gdb::array_view< const unsigned char > TARGET_DEBUG_PRINTER(target_debug_print_signals)) TARGET_DEFAULT_IGNORE() |
virtual void | program_signals (gdb::array_view< const unsigned char > TARGET_DEBUG_PRINTER(target_debug_print_signals)) TARGET_DEFAULT_IGNORE() |
virtual void | update_thread_list () TARGET_DEFAULT_IGNORE() |
virtual const char * | extra_thread_info (thread_info *) TARGET_DEFAULT_RETURN(NULL) |
virtual thread_info * | thread_handle_to_thread_info (const gdb_byte *, int, inferior *inf) TARGET_DEFAULT_RETURN(NULL) |
virtual void | rcmd (const char *command, struct ui_file *output) TARGET_DEFAULT_FUNC(default_rcmd) |
virtual void | log_command (const char *) TARGET_DEFAULT_IGNORE() |
virtual const target_section_table * | get_section_table () TARGET_DEFAULT_RETURN(default_get_section_table()) |
virtual thread_control_capabilities | get_thread_control_capabilities () TARGET_DEFAULT_RETURN(tc_none) |
virtual bool | has_pending_events () TARGET_DEFAULT_RETURN(false) |
virtual void | thread_events (int) TARGET_DEFAULT_IGNORE() |
virtual bool | always_non_stop_p () TARGET_DEFAULT_RETURN(false) |
virtual int | find_memory_regions (find_memory_region_ftype func, void *data) TARGET_DEFAULT_FUNC(dummy_find_memory_regions) |
virtual gdb::unique_xmalloc_ptr< char > | make_corefile_notes (bfd *, int *) TARGET_DEFAULT_FUNC(dummy_make_corefile_notes) |
virtual gdb_byte * | get_bookmark (const char *, int) TARGET_DEFAULT_NORETURN(tcomplain()) |
virtual void | goto_bookmark (const gdb_byte *, int) TARGET_DEFAULT_NORETURN(tcomplain()) |
virtual CORE_ADDR | get_thread_local_address (ptid_t ptid, CORE_ADDR load_module_addr, CORE_ADDR offset) TARGET_DEFAULT_NORETURN(generic_tls_error()) |
virtual ULONGEST | get_memory_xfer_limit () TARGET_DEFAULT_RETURN(ULONGEST_MAX) |
virtual std::vector< mem_region > virtual memory_map() TARGET_DEFAULT_RETURN(std void | flash_erase (ULONGEST address, LONGEST length) TARGET_DEFAULT_NORETURN(tcomplain()) |
virtual void | flash_done () TARGET_DEFAULT_NORETURN(tcomplain()) |
virtual const struct target_desc * | read_description () TARGET_DEFAULT_RETURN(NULL) |
virtual int | auxv_parse (const gdb_byte **readptr, const gdb_byte *endptr, CORE_ADDR *typep, CORE_ADDR *valp) TARGET_DEFAULT_FUNC(default_auxv_parse) |
virtual int | search_memory (CORE_ADDR start_addr, ULONGEST search_space_len, const gdb_byte *pattern, ULONGEST pattern_len, CORE_ADDR *found_addrp) TARGET_DEFAULT_FUNC(default_search_memory) |
virtual bool | can_execute_reverse () TARGET_DEFAULT_RETURN(false) |
virtual enum exec_direction_kind | execution_direction () TARGET_DEFAULT_FUNC(default_execution_direction) |
virtual bool | supports_multi_process () TARGET_DEFAULT_RETURN(false) |
virtual bool | supports_enable_disable_tracepoint () TARGET_DEFAULT_RETURN(false) |
virtual bool | supports_string_tracing () TARGET_DEFAULT_RETURN(false) |
virtual bool | supports_evaluation_of_breakpoint_conditions () TARGET_DEFAULT_RETURN(false) |
virtual bool | supports_dumpcore () TARGET_DEFAULT_RETURN(false) |
virtual void | dumpcore (const char *filename) TARGET_DEFAULT_IGNORE() |
virtual bool | can_run_breakpoint_commands () TARGET_DEFAULT_RETURN(false) |
virtual bool | filesystem_is_local () TARGET_DEFAULT_RETURN(true) |
virtual bool | info_proc (const char *, enum info_proc_what) |
virtual void | trace_init () TARGET_DEFAULT_NORETURN(tcomplain()) |
virtual void | download_tracepoint (struct bp_location *location) TARGET_DEFAULT_NORETURN(tcomplain()) |
virtual bool | can_download_tracepoint () TARGET_DEFAULT_RETURN(false) |
virtual void | download_trace_state_variable (const trace_state_variable &tsv) TARGET_DEFAULT_NORETURN(tcomplain()) |
virtual void | enable_tracepoint (struct bp_location *location) TARGET_DEFAULT_NORETURN(tcomplain()) |
virtual void | disable_tracepoint (struct bp_location *location) TARGET_DEFAULT_NORETURN(tcomplain()) |
virtual void | trace_set_readonly_regions () TARGET_DEFAULT_NORETURN(tcomplain()) |
virtual void | trace_start () TARGET_DEFAULT_NORETURN(tcomplain()) |
virtual int | get_trace_status (struct trace_status *ts) TARGET_DEFAULT_RETURN(-1) |
virtual void | get_tracepoint_status (tracepoint *tp, struct uploaded_tp *utp) TARGET_DEFAULT_NORETURN(tcomplain()) |
virtual void | trace_stop () TARGET_DEFAULT_NORETURN(tcomplain()) |
virtual int | trace_find (enum trace_find_type type, int num, CORE_ADDR addr1, CORE_ADDR addr2, int *tpp) TARGET_DEFAULT_RETURN(-1) |
virtual bool | get_trace_state_variable_value (int tsv, LONGEST *val) TARGET_DEFAULT_RETURN(false) |
virtual int | save_trace_data (const char *filename) TARGET_DEFAULT_NORETURN(tcomplain()) |
virtual int | upload_tracepoints (struct uploaded_tp **utpp) TARGET_DEFAULT_RETURN(0) |
virtual int | upload_trace_state_variables (struct uploaded_tsv **utsvp) TARGET_DEFAULT_RETURN(0) |
virtual LONGEST | get_raw_trace_data (gdb_byte *buf, ULONGEST offset, LONGEST len) TARGET_DEFAULT_NORETURN(tcomplain()) |
virtual int | get_min_fast_tracepoint_insn_len () TARGET_DEFAULT_RETURN(-1) |
virtual void | set_disconnected_tracing (int val) TARGET_DEFAULT_IGNORE() |
virtual void | set_circular_trace_buffer (int val) TARGET_DEFAULT_IGNORE() |
virtual void | set_trace_buffer_size (LONGEST val) TARGET_DEFAULT_IGNORE() |
virtual bool | set_trace_notes (const char *user, const char *notes, const char *stopnotes) TARGET_DEFAULT_RETURN(false) |
virtual int | core_of_thread (ptid_t ptid) TARGET_DEFAULT_RETURN(-1) |
virtual int | verify_memory (const gdb_byte *data, CORE_ADDR memaddr, ULONGEST size) TARGET_DEFAULT_FUNC(default_verify_memory) |
virtual void | set_permissions () TARGET_DEFAULT_IGNORE() |
virtual bool | static_tracepoint_marker_at (CORE_ADDR, static_tracepoint_marker *marker) TARGET_DEFAULT_RETURN(false) |
virtual std::vector< static_tracepoint_marker > | static_tracepoint_markers_by_strid (const char *id) TARGET_DEFAULT_NORETURN(tcomplain()) |
virtual traceframe_info_up | traceframe_info () TARGET_DEFAULT_NORETURN(tcomplain()) |
virtual struct btrace_target_info * | enable_btrace (thread_info *tp, const struct btrace_config *conf) TARGET_DEFAULT_NORETURN(tcomplain()) |
virtual void | disable_btrace (struct btrace_target_info *tinfo) TARGET_DEFAULT_NORETURN(tcomplain()) |
virtual void | teardown_btrace (struct btrace_target_info *tinfo) TARGET_DEFAULT_NORETURN(tcomplain()) |
virtual enum btrace_error | read_btrace (struct btrace_data *data, struct btrace_target_info *btinfo, enum btrace_read_type type) TARGET_DEFAULT_NORETURN(tcomplain()) |
virtual const struct btrace_config * | btrace_conf (const struct btrace_target_info *) TARGET_DEFAULT_RETURN(NULL) |
virtual enum record_method | record_method (ptid_t ptid) TARGET_DEFAULT_RETURN(RECORD_METHOD_NONE) |
virtual void | stop_recording () TARGET_DEFAULT_IGNORE() |
virtual void | info_record () TARGET_DEFAULT_IGNORE() |
virtual void | save_record (const char *filename) TARGET_DEFAULT_NORETURN(tcomplain()) |
virtual bool | supports_delete_record () TARGET_DEFAULT_RETURN(false) |
virtual void | delete_record () TARGET_DEFAULT_NORETURN(tcomplain()) |
virtual bool | record_is_replaying (ptid_t ptid) TARGET_DEFAULT_RETURN(false) |
virtual bool | record_will_replay (ptid_t ptid, int dir) TARGET_DEFAULT_RETURN(false) |
virtual void | record_stop_replaying () TARGET_DEFAULT_IGNORE() |
virtual void | goto_record_begin () TARGET_DEFAULT_NORETURN(tcomplain()) |
virtual void | goto_record_end () TARGET_DEFAULT_NORETURN(tcomplain()) |
virtual void | goto_record (ULONGEST insn) TARGET_DEFAULT_NORETURN(tcomplain()) |
virtual void | insn_history (int size, gdb_disassembly_flags flags) TARGET_DEFAULT_NORETURN(tcomplain()) |
virtual void | insn_history_from (ULONGEST from, int size, gdb_disassembly_flags flags) TARGET_DEFAULT_NORETURN(tcomplain()) |
virtual void | insn_history_range (ULONGEST begin, ULONGEST end, gdb_disassembly_flags flags) TARGET_DEFAULT_NORETURN(tcomplain()) |
virtual void | call_history (int size, record_print_flags flags) TARGET_DEFAULT_NORETURN(tcomplain()) |
virtual void | call_history_from (ULONGEST begin, int size, record_print_flags flags) TARGET_DEFAULT_NORETURN(tcomplain()) |
virtual void | call_history_range (ULONGEST begin, ULONGEST end, record_print_flags flags) TARGET_DEFAULT_NORETURN(tcomplain()) |
virtual bool | augmented_libraries_svr4_read () TARGET_DEFAULT_RETURN(false) |
virtual const struct frame_unwind * | get_unwinder () TARGET_DEFAULT_RETURN(NULL) |
virtual const struct frame_unwind * | get_tailcall_unwinder () TARGET_DEFAULT_RETURN(NULL) |
virtual void | prepare_to_generate_core () TARGET_DEFAULT_IGNORE() |
virtual void | done_generating_core () TARGET_DEFAULT_IGNORE() |
virtual bool | supports_memory_tagging () TARGET_DEFAULT_RETURN(false) |
virtual bool | fetch_memtags (CORE_ADDR address, size_t len, gdb::byte_vector &tags, int type) TARGET_DEFAULT_NORETURN(tcomplain()) |
virtual bool | store_memtags (CORE_ADDR address, size_t len, const gdb::byte_vector &tags, int type) TARGET_DEFAULT_NORETURN(tcomplain()) |
virtual x86_xsave_layout | fetch_x86_xsave_layout () TARGET_DEFAULT_RETURN(x86_xsave_layout()) |
Private Member Functions | |
windows_thread_info * | add_thread (ptid_t ptid, HANDLE h, void *tlb, bool main_thread_p) |
void | delete_thread (ptid_t ptid, DWORD exit_code, bool main_thread_p) |
DWORD | fake_create_process () |
BOOL | windows_continue (DWORD continue_status, int id, int killed, bool last_call=false) |
void | process_thread () |
void | do_synchronously (gdb::function_view< bool()> func) |
void | wait_for_debug_event_main_thread (DEBUG_EVENT *event) |
Static Private Member Functions | |
static DWORD WINAPI | process_thread_starter (LPVOID self) |
Private Attributes | |
std::queue< gdb::function_view< bool()> > | m_queue |
HANDLE | m_pushed_event |
HANDLE | m_response_event |
serial_event * | m_wait_event |
DEBUG_EVENT | m_last_debug_event {} |
std::atomic< bool > | m_debug_event_pending { false } |
bool | m_is_async = false |
Additional Inherited Members | |
![]() | |
bool | threads_executing = false |
int | connection_number = 0 |
bool | commit_resumed_state = false |
![]() | |
virtual gdb::array_view< const_gdb_byte > virtual thread_info_to_thread_handle(struct thread_info *) TARGET_DEFAULT_RETURN(gdb voi | stop )(ptid_t) TARGET_DEFAULT_IGNORE() |
![]() | |
void | maybe_unpush_target () |
Definition at line 248 of file windows-nat.c.
windows_nat_target::windows_nat_target | ( | ) |
Definition at line 402 of file windows-nat.c.
References process_thread_starter().
|
private |
Definition at line 552 of file windows-nat.c.
References add_thread_silent(), windows_nat::windows_thread_info::debug_registers_changed, windows_nat::DONT_INVALIDATE_CONTEXT, windows_per_inferior::thread_list, windows_per_inferior::thread_rec(), and windows_process.
Referenced by fake_create_process(), and get_windows_debug_event().
|
overridevirtual |
Reimplemented from target_ops.
Definition at line 413 of file windows-nat.c.
References async_wait_fd(), enable, INF_REG_EVENT, inferior_event_handler(), is_async_p(), and m_is_async.
Referenced by close().
|
inlineoverridevirtual |
Reimplemented from target_ops.
Definition at line 333 of file windows-nat.c.
References m_wait_event, and serial_event_fd().
Referenced by async().
|
overridevirtual |
Implements inf_child_target.
Definition at line 2014 of file windows-nat.c.
References BOOL, windows_nat::DebugSetProcessKillOnExit, do_initial_windows_stuff(), do_synchronously(), err, target_terminal::ours(), parse_pid_to_attach(), pid, windows_per_inferior::saw_create, set_process_privilege(), target_announce_attach(), windows_init_thread_list(), and windows_process.
|
inlineoverridevirtual |
Reimplemented from target_ops.
Definition at line 256 of file windows-nat.c.
|
inlineoverridevirtual |
Reimplemented from process_stratum_target.
Definition at line 321 of file windows-nat.c.
|
overridevirtual |
Reimplemented from inf_child_target.
Definition at line 2888 of file windows-nat.c.
References async(), DEBUG_EVENTS, and inferior_ptid.
Referenced by create_inferior().
|
overridevirtual |
Implements inf_child_target.
Definition at line 2501 of file windows-nat.c.
References __PMAX, BOOL, close(), windows_nat::create_process(), current_inferior(), inferior::cwd(), disable_randomization, do_initial_windows_stuff(), do_synchronously(), environ, envvar_cmp(), err, flags, L, new_console, new_group, O_NOCTTY, qsort, redirect_inferior_handles(), windows_per_inferior::saw_create, STARTUPINFO, inferior::tty(), useshell, warning_filename_and_errno(), windows_init_thread_list(), windows_process, and windows_set_console_info().
|
private |
Definition at line 606 of file windows-nat.c.
References delete_thread_with_exit_code(), process_stratum_target::find_thread(), info_verbose, windows_per_inferior::thread_list, and windows_process.
Referenced by get_windows_debug_event().
|
overridevirtual |
Reimplemented from target_ops.
Definition at line 2073 of file windows-nat.c.
References windows_nat::windows_process_info::current_event, windows_nat::DebugActiveProcessStop, windows_nat::DebugSetProcessKillOnExit, detach_inferior(), do_synchronously(), err, inf_child_target::maybe_unpush_target(), switch_to_no_thread(), target_announce_detach(), windows_continue(), windows_process, and x86_cleanup_dregs().
Referenced by wait().
void windows_nat_target::do_initial_windows_stuff | ( | DWORD | pid, |
bool | attaching ) |
Definition at line 1872 of file windows-nat.c.
References windows_nat::windows_process_info::add_all_dlls(), amd64_mappings, amd64_windows_segment_register_p(), clear_proceed_status(), windows_nat::windows_process_info::current_event, current_inferior(), disable_breakpoints_in_shlibs(), windows_per_inferior::dr, process_stratum_target::find_thread(), i386_mappings, i386_windows_segment_register_p(), target_terminal::inferior(), inferior_appeared(), target_terminal::init(), init_wait_for_inferior(), windows_nat::windows_process_info::last_sig, windows_per_inferior::mappings, windows_per_inferior::open_process_used, pid, resume(), windows_per_inferior::segment_register_p, status, switch_to_thread(), TARGET_WAITKIND_LOADED, TARGET_WAITKIND_SPURIOUS, wait(), windows_clear_solib(), windows_per_inferior::windows_initialization_done, and windows_process.
Referenced by attach(), and create_inferior().
|
private |
Definition at line 486 of file windows-nat.c.
References func, m_pushed_event, m_queue, m_response_event, and wait_for_single().
Referenced by attach(), create_inferior(), detach(), wait_for_debug_event_main_thread(), and windows_continue().
|
private |
Definition at line 1359 of file windows-nat.c.
References add_thread(), windows_nat::windows_process_info::current_event, err, windows_nat::windows_process_info::handle, windows_per_inferior::open_process_used, and windows_process.
Referenced by get_windows_debug_event().
|
overridevirtual |
Implements inf_child_target.
Definition at line 713 of file windows-nat.c.
References reg_buffer::arch(), CHECK, windows_nat::windows_thread_info::context, CONTEXT_DEBUGGER_DR, windows_nat::windows_thread_info::debug_registers_changed, windows_per_inferior::dr, gdbarch_num_regs(), windows_nat::windows_thread_info::h, windows_per_inferior::have_saved_context, windows_nat::INVALIDATE_CONTEXT, regcache::ptid(), windows_nat::windows_thread_info::reload_context, windows_per_inferior::thread_rec(), windows_fetch_one_register(), windows_process, and Wow64GetThreadContext.
Referenced by resume().
|
overridevirtual |
Reimplemented from target_ops.
Definition at line 2112 of file windows-nat.c.
References current_inferior(), gdb_printf(), inf::pid, and target_pid_to_str().
|
overridevirtual |
Reimplemented from target_ops.
Definition at line 3040 of file windows-nat.c.
References inferior_ptid.
|
overridevirtual |
Reimplemented from target_ops.
Definition at line 3025 of file windows-nat.c.
References windows_nat::DONT_INVALIDATE_CONTEXT, windows_nat::windows_thread_info::thread_local_base, windows_per_inferior::thread_rec(), and windows_process.
ptid_t windows_nat_target::get_windows_debug_event | ( | int | pid, |
struct target_waitstatus * | ourstatus, | ||
target_wait_flags | options ) |
Definition at line 1555 of file windows-nat.c.
References add_thread(), CHECK, windows_nat::windows_process_info::current_event, DEBUG_EVENTS, debug_events, debug_exceptions, delete_thread(), windows_nat::windows_process_info::desired_stop_thread_id, windows_nat::windows_process_info::dll_loaded_event(), exception_print(), fake_create_process(), windows_nat::windows_process_info::fetch_pending_stop(), find_inferior_pid(), gdb_printf(), gdb_stderr, windows_nat::windows_process_info::handle, windows_nat::windows_process_info::handle_exception(), windows_nat::HANDLE_EXCEPTION_HANDLED, windows_nat::HANDLE_EXCEPTION_IGNORED, windows_nat::HANDLE_EXCEPTION_UNHANDLED, windows_per_inferior::handle_output_debug_string(), windows_per_inferior::handle_unload_dll(), windows_per_inferior::have_saved_context, inferior_ptid, windows_nat::INVALIDATE_CONTEXT, windows_nat::windows_process_info::last_sig, m_debug_event_pending, target_terminal::ours(), windows_nat::windows_thread_info::pc_adjusted, windows_nat::windows_process_info::pending_stops, windows_nat::windows_thread_info::reload_context, windows_per_inferior::saw_create, target_waitstatus::set_exited(), target_waitstatus::set_ignore(), target_waitstatus::set_loaded(), target_waitstatus::set_signalled(), target_waitstatus::set_spurious(), STATUS_WX86_BREAKPOINT, target_ops::stop, windows_nat::windows_thread_info::stopped_at_software_breakpoint, target_mourn_inferior(), TARGET_WNOHANG, windows_per_inferior::thread_rec(), wait_for_debug_event_main_thread(), windows_continue(), windows_per_inferior::windows_initialization_done, and windows_process.
Referenced by wait().
|
overridevirtual |
Reimplemented from inf_child_target.
Definition at line 1508 of file windows-nat.c.
References DEBUG_EVENTS, windows_nat::DebugBreakProcess, find_minimal_symbol_address(), windows_nat::windows_process_info::handle, and windows_process.
Referenced by pass_ctrlc().
|
inlineoverridevirtual |
Reimplemented from target_ops.
Definition at line 326 of file windows-nat.c.
References m_is_async.
Referenced by async().
|
overridevirtual |
Reimplemented from target_ops.
Definition at line 2870 of file windows-nat.c.
References CHECK, windows_nat::windows_process_info::current_event, windows_nat::windows_process_info::handle, inferior_ptid, target_mourn_inferior(), wait_for_debug_event_main_thread(), windows_continue(), and windows_process.
Referenced by wait().
|
overridevirtual |
Reimplemented from inf_child_target.
Definition at line 2816 of file windows-nat.c.
References CHECK, windows_nat::windows_process_info::handle, inf_child_target::mourn_inferior(), windows_per_inferior::open_process_used, windows_nat::windows_process_info::siginfo_er, windows_continue(), windows_process, and x86_cleanup_dregs().
|
overridevirtual |
Reimplemented from inf_child_target.
Definition at line 1547 of file windows-nat.c.
References interrupt().
|
overridevirtual |
Reimplemented from inf_child_target.
Definition at line 2104 of file windows-nat.c.
References pid, windows_nat::windows_process_info::pid_to_exec_file(), and windows_process.
|
overridevirtual |
Reimplemented from target_ops.
Definition at line 2896 of file windows-nat.c.
References normal_pid_to_str().
|
private |
Definition at line 461 of file windows-nat.c.
References func, m_debug_event_pending, m_last_debug_event, m_pushed_event, m_queue, m_response_event, m_wait_event, serial_event_set(), windows_nat::wait_for_debug_event(), and wait_for_single().
|
staticprivate |
Definition at line 454 of file windows-nat.c.
Referenced by windows_nat_target().
|
override |
Definition at line 1382 of file windows-nat.c.
References reg_buffer::arch(), CHECK, windows_nat::windows_thread_info::context, windows_nat::windows_process_info::current_event, DEBUG_EXCEPT, DEBUG_EXEC, windows_nat::windows_thread_info::debug_registers_changed, windows_nat::DONT_INVALIDATE_CONTEXT, windows_per_inferior::dr, DR6_CLEAR_VALUE, fetch_registers(), FLAG_TRACE_BIT, gdbarch_ps_regnum(), get_current_regcache(), windows_nat::windows_thread_info::h, inferior_ptid, windows_nat::windows_process_info::last_sig, windows_per_inferior::thread_rec(), windows_continue(), windows_process, and Wow64SetThreadContext.
Referenced by do_initial_windows_stuff().
|
inlineoverridevirtual |
Reimplemented from target_ops.
Definition at line 268 of file windows-nat.c.
References windows_nat::DONT_INVALIDATE_CONTEXT, inferior_ptid, windows_nat::windows_thread_info::stopped_at_software_breakpoint, windows_per_inferior::thread_rec(), and windows_process.
|
overridevirtual |
Implements inf_child_target.
Definition at line 809 of file windows-nat.c.
References reg_buffer::arch(), gdbarch_num_regs(), windows_nat::INVALIDATE_CONTEXT, regcache::ptid(), windows_per_inferior::thread_rec(), windows_process, and windows_store_one_register().
|
inlineoverridevirtual |
Reimplemented from process_stratum_target.
Definition at line 316 of file windows-nat.c.
References windows_nat::disable_randomization_available().
|
inlineoverridevirtual |
Reimplemented from target_ops.
Definition at line 275 of file windows-nat.c.
|
overridevirtual |
Reimplemented from target_ops.
Definition at line 3222 of file windows-nat.c.
References windows_nat::DONT_INVALIDATE_CONTEXT, windows_nat::windows_thread_info::h, windows_per_inferior::thread_rec(), and windows_process.
|
overridevirtual |
Reimplemented from target_ops.
Definition at line 3048 of file windows-nat.c.
References windows_nat::DONT_INVALIDATE_CONTEXT, thread_info::ptid, windows_nat::windows_thread_info::thread_name(), windows_per_inferior::thread_rec(), and windows_process.
|
overridevirtual |
Reimplemented from target_ops.
Definition at line 1816 of file windows-nat.c.
References windows_nat::windows_process_info::current_event, deprecated_ui_loop_hook, detach(), get_windows_debug_event(), windows_nat::INVALIDATE_CONTEXT, kill(), target_waitstatus::kind(), windows_nat::windows_thread_info::pc_adjusted, pid, STATUS_WX86_BREAKPOINT, windows_nat::windows_thread_info::stopped_at_software_breakpoint, TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED, windows_per_inferior::thread_rec(), windows_per_inferior::windows_initialization_done, and windows_process.
Referenced by do_initial_windows_stuff().
|
private |
Definition at line 494 of file windows-nat.c.
References do_synchronously(), m_debug_event_pending, m_last_debug_event, m_wait_event, serial_event_clear(), and windows_nat::wait_for_debug_event().
Referenced by get_windows_debug_event(), and kill().
|
private |
Definition at line 1253 of file windows-nat.c.
References BOOL, CHECK, windows_nat::continue_last_debug_event(), debug_events, windows_nat::windows_process_info::desired_stop_thread_id, do_synchronously(), windows_per_inferior::dr, DR6_CLEAR_VALUE, err, m_wait_event, windows_nat::windows_process_info::matching_pending_stop(), serial_event_set(), status, windows_per_inferior::thread_list, windows_process, and Wow64SetThreadContext.
Referenced by detach(), get_windows_debug_event(), kill(), mourn_inferior(), and resume().
|
overridevirtual |
Reimplemented from target_ops.
Definition at line 2990 of file windows-nat.c.
References target_ops::beneath(), TARGET_OBJECT_LIBRARIES, TARGET_OBJECT_MEMORY, TARGET_OBJECT_SIGNAL_INFO, TARGET_XFER_E_IO, windows_xfer_memory(), windows_xfer_shared_libraries(), windows_xfer_siginfo(), and target_ops::xfer_partial().
|
private |
Definition at line 385 of file windows-nat.c.
Referenced by get_windows_debug_event(), process_thread(), and wait_for_debug_event_main_thread().
|
private |
Definition at line 388 of file windows-nat.c.
Referenced by async(), and is_async_p().
|
private |
Definition at line 383 of file windows-nat.c.
Referenced by process_thread(), and wait_for_debug_event_main_thread().
|
private |
Definition at line 373 of file windows-nat.c.
Referenced by do_synchronously(), and process_thread().
|
private |
Definition at line 369 of file windows-nat.c.
Referenced by do_synchronously(), and process_thread().
|
private |
Definition at line 376 of file windows-nat.c.
Referenced by do_synchronously(), and process_thread().
|
private |
Definition at line 380 of file windows-nat.c.
Referenced by async_wait_fd(), process_thread(), wait_for_debug_event_main_thread(), and windows_continue().