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 (char *program, char **allargs) |
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) |
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, 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, and nto_inferior::pid.
Referenced by do_attach(), and do_detach().
void initialize_low | ( | void | ) |
Definition at line 974 of file nto-low.c.
References linux_target_ops::breakpoint, linux_target_ops::breakpoint_len, set_breakpoint_data(), set_target_ops(), the_low_target, and TRACE.
|
static |
Definition at line 385 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 353 of file nto-low.c.
References do_attach(), and TRACE.
|
static |
Definition at line 407 of file nto-low.c.
References do_detach(), and TRACE.
|
static |
Definition at line 615 of file nto-low.c.
References nto_inferior::ctl_fd, current_thread, nto_set_thread(), supply_register(), the_low_target, thread_to_gdb_id(), 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::tid, and TRACE.
Referenced by do_attach(), and nto_wait().
|
static |
Definition at line 792 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 396 of file nto-low.c.
References do_detach(), and TRACE.
|
static |
Definition at line 415 of file nto-low.c.
References remove_process().
|
static |
Definition at line 753 of file nto-low.c.
References nto_inferior::ctl_fd, nto_read_auxv_from_initial_stack(), and TRACE.
|
static |
Definition at line 281 of file nto-low.c.
References nto_xfer_memory(), and TRACE.
Referenced by nto_read_auxv().
|
static |
Definition at line 700 of file nto-low.c.
References nto_xfer_memory(), and TRACE.
|
static |
Definition at line 824 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 738 of file nto-low.c.
References nto_inferior::ctl_fd, nto_set_thread(), nto_inferior::pid, ptid_build(), and TRACE.
|
static |
Definition at line 443 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 859 of file nto-low.c.
References nto_inferior::ctl_fd, current_thread, nto_set_thread(), thread_to_gdb_id(), and TRACE.
|
static |
Definition at line 891 of file nto-low.c.
References nto_inferior::ctl_fd, current_thread, nto_set_thread(), thread_to_gdb_id(), and TRACE.
|
static |
Definition at line 664 of file nto-low.c.
References collect_register(), nto_inferior::ctl_fd, current_thread, nto_set_thread(), the_low_target, thread_to_gdb_id(), and TRACE.
|
static |
|
static |
Definition at line 774 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 425 of file nto-low.c.
References ptid_get_lwp(), ptid_get_pid(), and TRACE.
|
static |
|
static |
Definition at line 510 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 719 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().