|
GDBserver
|
#include "server.h"#include "gdbthread.h"#include "nto-low.h"#include "hostio.h"#include <limits.h>#include <fcntl.h>#include <spawn.h>#include <sys/procfs.h>#include <sys/auxv.h>#include <sys/iomgr.h>#include <sys/neutrino.h>Go to the source code of this file.
Classes | |
| struct | nto_inferior |
Macros | |
| #define | TRACE nto_trace |
Functions | |
| static void | nto_trace (const char *fmt,...) |
| static void | init_nto_inferior (struct nto_inferior *nto_inferior) |
| static void | do_detach (void) |
| static int | nto_set_thread (ptid_t ptid) |
| static void | nto_find_new_threads (struct nto_inferior *nto_inferior) |
| static pid_t | do_attach (pid_t pid) |
| static int | nto_xfer_memory (off_t memaddr, unsigned char *myaddr, int len, int dowrite) |
| static int | nto_breakpoint (CORE_ADDR addr, int type, int size) |
| static int | nto_read_auxv_from_initial_stack (CORE_ADDR initial_stack, unsigned char *myaddr, unsigned int len) |
| static int | nto_create_inferior (const char *program, const std::vector< char *> &program_args) |
| static int | nto_attach (unsigned long pid) |
| static int | nto_kill (int pid) |
| static int | nto_detach (int pid) |
| static void | nto_mourn (struct process_info *process) |
| static int | nto_thread_alive (ptid_t ptid) |
| static void | nto_resume (struct thread_resume *resume_info, size_t n) |
| static ptid_t | nto_wait (ptid_t ptid, struct target_waitstatus *ourstatus, int target_options) |
| static void | nto_fetch_registers (struct regcache *regcache, int regno) |
| static void | nto_store_registers (struct regcache *regcache, int regno) |
| static int | nto_read_memory (CORE_ADDR memaddr, unsigned char *myaddr, int len) |
| static int | nto_write_memory (CORE_ADDR memaddr, const unsigned char *myaddr, int len) |
| static void | nto_request_interrupt (void) |
| static int | nto_read_auxv (CORE_ADDR offset, unsigned char *myaddr, unsigned int len) |
| static int | nto_supports_z_point_type (char z_type) |
| static int | nto_insert_point (enum raw_bkpt_type type, CORE_ADDR addr, int size, struct raw_breakpoint *bp) |
| static int | nto_remove_point (enum raw_bkpt_type type, CORE_ADDR addr, int size, struct raw_breakpoint *bp) |
| static int | nto_stopped_by_watchpoint (void) |
| static CORE_ADDR | nto_stopped_data_address (void) |
| static int | nto_supports_non_stop (void) |
| static const gdb_byte * | nto_sw_breakpoint_from_kind (int kind, int *size) |
| void | initialize_low (void) |
Variables | |
| int | using_threads = 1 |
| const struct target_desc * | nto_tdesc |
| static struct nto_inferior | nto_inferior |
| static struct target_ops | nto_target_ops |
| #define TRACE nto_trace |
Definition at line 53 of file nto-low.c.
Referenced by do_attach(), initialize_low(), nto_attach(), nto_create_inferior(), nto_detach(), nto_fetch_registers(), nto_find_new_threads(), nto_insert_point(), nto_kill(), nto_read_auxv(), nto_read_auxv_from_initial_stack(), nto_read_memory(), nto_remove_point(), nto_request_interrupt(), nto_resume(), nto_set_thread(), nto_stopped_by_watchpoint(), nto_stopped_data_address(), nto_store_registers(), nto_supports_non_stop(), nto_thread_alive(), nto_wait(), nto_write_memory(), and nto_xfer_memory().
|
static |
Definition at line 170 of file nto-low.c.
References add_process(), linux_target_ops::arch_setup, nto_inferior::ctl_fd, do_detach(), init_nto_inferior(), nto_find_new_threads(), nto_inferior::nto_procfs_path, nto_tdesc, process_info::pid, nto_inferior::pid, ptid_build(), ptid_get_lwp(), process_info::tdesc, the_low_target, TRACE, and xsnprintf().
Referenced by nto_attach(), and nto_create_inferior().
|
static |
Definition at line 77 of file nto-low.c.
References nto_inferior::ctl_fd, init_nto_inferior(), and nto_trace().
Referenced by do_attach(), nto_detach(), and nto_kill().
|
static |
Definition at line 69 of file nto-low.c.
References nto_inferior::ctl_fd, memset(), and nto_inferior::pid.
Referenced by do_attach(), and do_detach().
| void initialize_low | ( | void | ) |
Definition at line 1013 of file nto-low.c.
References set_target_ops(), and TRACE.
|
static |
Definition at line 389 of file nto-low.c.
References do_attach(), error(), and TRACE.
|
static |
Definition at line 262 of file nto-low.c.
References nto_inferior::ctl_fd.
Referenced by nto_insert_point(), and nto_remove_point().
|
static |
Definition at line 354 of file nto-low.c.
References do_attach(), memset(), program_args, string, stringify_argv(), and TRACE.
|
static |
Definition at line 411 of file nto-low.c.
References do_detach(), and TRACE.
|
static |
Definition at line 619 of file nto-low.c.
References nto_inferior::ctl_fd, current_thread, nto_set_thread(), ptid_of(), supply_register(), the_low_target, and TRACE.
|
static |
Definition at line 118 of file nto-low.c.
References add_thread(), nto_inferior::ctl_fd, find_thread_ptid(), nto_inferior::pid, ptid_build(), remove_thread(), ptid_t::tid(), and TRACE.
Referenced by do_attach(), and nto_wait().
|
static |
Definition at line 794 of file nto-low.c.
References nto_breakpoint(), raw_bkpt_type_access_wp, raw_bkpt_type_hw, raw_bkpt_type_read_wp, raw_bkpt_type_sw, raw_bkpt_type_write_wp, and TRACE.
|
static |
Definition at line 400 of file nto-low.c.
References do_detach(), and TRACE.
|
static |
Definition at line 419 of file nto-low.c.
References remove_process().
|
static |
Definition at line 755 of file nto-low.c.
References nto_inferior::ctl_fd, nto_read_auxv_from_initial_stack(), offset, and TRACE.
|
static |
Definition at line 281 of file nto-low.c.
References memset(), nto_xfer_memory(), and TRACE.
Referenced by nto_read_auxv().
|
static |
Definition at line 702 of file nto-low.c.
References nto_xfer_memory(), and TRACE.
|
static |
Definition at line 826 of file nto-low.c.
References nto_breakpoint(), raw_bkpt_type_access_wp, raw_bkpt_type_hw, raw_bkpt_type_read_wp, raw_bkpt_type_sw, raw_bkpt_type_write_wp, and TRACE.
|
static |
Definition at line 740 of file nto-low.c.
References nto_inferior::ctl_fd, nto_set_thread(), nto_inferior::pid, ptid_build(), and TRACE.
|
static |
Definition at line 447 of file nto-low.c.
References nto_inferior::ctl_fd, thread_resume::kind, nto_set_thread(), regcache_invalidate(), thread_resume::sig, strerror(), thread_resume::thread, and TRACE.
|
static |
Definition at line 90 of file nto-low.c.
References nto_inferior::ctl_fd, minus_one_ptid, null_ptid, ptid_equal(), ptid_get_lwp(), ptid_get_pid(), and TRACE.
Referenced by nto_fetch_registers(), nto_request_interrupt(), nto_resume(), nto_stopped_by_watchpoint(), nto_stopped_data_address(), and nto_store_registers().
|
static |
Definition at line 861 of file nto-low.c.
References nto_inferior::ctl_fd, current_thread, nto_set_thread(), ptid_of(), and TRACE.
|
static |
Definition at line 891 of file nto-low.c.
References nto_inferior::ctl_fd, current_thread, nto_set_thread(), ptid_of(), and TRACE.
|
static |
Definition at line 667 of file nto-low.c.
References collect_register(), nto_inferior::ctl_fd, current_thread, memset(), nto_set_thread(), ptid_of(), the_low_target, and TRACE.
|
static |
|
static |
Definition at line 776 of file nto-low.c.
References Z_PACKET_ACCESS_WP, Z_PACKET_HW_BP, Z_PACKET_READ_WP, Z_PACKET_SW_BP, and Z_PACKET_WRITE_WP.
|
static |
Definition at line 925 of file nto-low.c.
References the_low_target.
|
static |
Definition at line 429 of file nto-low.c.
References ptid_get_lwp(), ptid_get_pid(), and TRACE.
|
static |
|
static |
Definition at line 514 of file nto-low.c.
References nto_inferior::ctl_fd, nto_inferior::exit_signo, gdb_signal_from_host(), nto_find_new_threads(), ptid_build(), ptid_get_pid(), TRACE, WEXITSTATUS, and WNOHANG.
|
static |
Definition at line 721 of file nto-low.c.
References nto_xfer_memory(), and TRACE.
|
static |
Definition at line 233 of file nto-low.c.
References nto_inferior::ctl_fd, errno, strerror(), and TRACE.
Referenced by nto_read_auxv_from_initial_stack(), nto_read_memory(), and nto_write_memory().
|
static |
|
static |
| const struct target_desc* nto_tdesc |
Definition at line 38 of file nto-low.c.
Referenced by do_attach(), and nto_x86_arch_setup().
1.8.14