GDB (xrefs)
|
#include "defs.h"
#include <fcntl.h>
#include <spawn.h>
#include <sys/debug.h>
#include <sys/procfs.h>
#include <sys/neutrino.h>
#include <sys/syspage.h>
#include <dirent.h>
#include <sys/netmgr.h>
#include <sys/auxv.h>
#include "gdbcore.h"
#include "inferior.h"
#include "target.h"
#include "objfiles.h"
#include "gdbthread.h"
#include "nto-tdep.h"
#include "command.h"
#include "regcache.h"
#include "solib.h"
#include "inf-child.h"
#include "gdbsupport/filestuff.h"
#include "gdbsupport/scoped_fd.h"
Go to the source code of this file.
Classes | |
struct | nto_procfs_target |
class | nto_procfs_target_native |
struct | nto_procfs_target_procfs |
Macros | |
#define | NULL_PID 0 |
#define | _DEBUG_FLAG_TRACE |
#define | OSTYPE_NTO 1 |
Functions | |
static ptid_t | do_attach (ptid_t ptid) |
static unsigned | nto_node (void) |
static enum gdb_osabi | procfs_is_nto_target (bfd *abfd) |
static void | procfs_set_thread (ptid_t ptid) |
static void | update_thread_private_data_name (struct thread_info *new_thread, const char *newname) |
static void | update_thread_private_data (struct thread_info *new_thread, pthread_t tid, int state, int flags) |
static void | procfs_pidlist (const char *args, int from_tty) |
static void | procfs_meminfo (const char *args, int from_tty) |
static void | interrupt_query (void) |
static void | nto_handle_sigint_twice (int signo) |
static void | nto_handle_sigint (int signo) |
static enum target_xfer_status | procfs_xfer_memory (gdb_byte *readbuf, const gdb_byte *writebuf, ULONGEST memaddr, ULONGEST len, ULONGEST *xfered_len) |
static int | procfs_breakpoint (CORE_ADDR addr, int type, int size) |
static void | breakup_args (char *scratch, char **argv) |
static int | get_regset (int regset, char *buf, int bufsize, int *regsize) |
static void | init_procfs_targets (void) |
void | _initialize_procfs () |
static int | procfs_hw_watchpoint (int addr, int len, enum target_hw_bp_type type) |
Variables | |
int | ctl_fd |
static sighandler_t | ofunc |
static procfs_run | run |
static const target_info | nto_native_target_info |
static const target_info | nto_procfs_target_info |
static char * | nodestr |
static unsigned | nto_procfs_node = ND_LOCAL_NODE |
static nto_procfs_target_procfs | nto_procfs_ops |
static nto_procfs_target_native | nto_native_ops |
#define _DEBUG_FLAG_TRACE |
Definition at line 49 of file nto-procfs.c.
Referenced by nto_procfs_target::wait().
#define NULL_PID 0 |
Definition at line 48 of file nto-procfs.c.
#define OSTYPE_NTO 1 |
Definition at line 1485 of file nto-procfs.c.
void _initialize_procfs | ( | ) |
Definition at line 1489 of file nto-procfs.c.
References add_info(), init_procfs_targets(), nto_cpuinfo_flags, nto_cpuinfo_valid, nto_is_nto_target, procfs_is_nto_target(), procfs_meminfo(), procfs_pidlist(), and run.
|
static |
Definition at line 1126 of file nto-procfs.c.
Referenced by nto_procfs_target::create_inferior().
|
static |
Definition at line 727 of file nto-procfs.c.
References ctl_fd, nodestr, nto_init_solib_absolute_prefix(), nto_node(), and status.
Referenced by nto_procfs_target::attach(), and nto_procfs_target::create_inferior().
|
static |
Definition at line 1324 of file nto-procfs.c.
References ctl_fd, NTO_REG_ALT, NTO_REG_FLOAT, NTO_REG_GENERAL, and NTO_REG_SYSTEM.
Referenced by nto_procfs_target::store_registers().
|
static |
Definition at line 1475 of file nto-procfs.c.
References add_target(), inf_child_open_target(), nto_native_ops, nto_native_target_info, nto_procfs_target_info, and set_native_target().
Referenced by _initialize_procfs().
|
static |
Definition at line 759 of file nto-procfs.c.
References inferior_ptid, query(), quit(), and target_mourn_inferior().
Referenced by nto_handle_sigint_twice().
|
static |
Definition at line 779 of file nto-procfs.c.
References nto_handle_sigint_twice(), and target_interrupt().
Referenced by nto_procfs_target::wait().
|
static |
Definition at line 771 of file nto-procfs.c.
References interrupt_query(), nto_handle_sigint_twice(), and ofunc.
Referenced by nto_handle_sigint(), and nto_handle_sigint_twice().
|
static |
Definition at line 169 of file nto-procfs.c.
References nodestr, and nto_procfs_node.
Referenced by nto_procfs_target::create_inferior(), nto_procfs_target::detach(), do_attach(), nto_procfs_target::mourn_inferior(), and nto_procfs_target::resume().
|
static |
Definition at line 998 of file nto-procfs.c.
References ctl_fd, size, and type.
Referenced by nto_procfs_target::insert_breakpoint(), nto_procfs_target::insert_hw_breakpoint(), nto_procfs_target::remove_breakpoint(), and nto_procfs_target::remove_hw_breakpoint().
|
static |
Definition at line 1516 of file nto-procfs.c.
References ctl_fd.
|
static |
Definition at line 185 of file nto-procfs.c.
References GDB_OSABI_QNXNTO.
Referenced by _initialize_procfs(), and nto_procfs_target::open().
|
static |
Definition at line 509 of file nto-procfs.c.
References ctl_fd, err, flags, gdb_printf(), name, size, and xfree().
Referenced by _initialize_procfs().
|
static |
Definition at line 422 of file nto-procfs.c.
References err, gdb_printf(), gdb_stderr, name, nodestr, pid, and status.
Referenced by _initialize_procfs().
|
static |
Definition at line 290 of file nto-procfs.c.
References ctl_fd.
Referenced by nto_procfs_target::fetch_registers(), nto_procfs_target::resume(), and nto_procfs_target::store_registers().
|
static |
Definition at line 907 of file nto-procfs.c.
References ctl_fd, read(), SEEK_SET, TARGET_XFER_E_IO, and TARGET_XFER_OK.
Referenced by nto_procfs_target::xfer_partial().
|
static |
Definition at line 346 of file nto-procfs.c.
References ctl_fd, flags, nto_thread_info::flags, get_nto_thread_info(), new_thread(), nto_thread_info::state, nto_thread_info::tid, and update_thread_private_data_name().
Referenced by nto_procfs_target::update_thread_list().
|
static |
Definition at line 328 of file nto-procfs.c.
References get_nto_thread_info(), nto_thread_info::name, new_thread(), and thread_info::priv.
Referenced by update_thread_private_data().
int ctl_fd |
Definition at line 52 of file nto-procfs.c.
Referenced by nto_procfs_target::create_inferior(), nto_procfs_target::detach(), do_attach(), nto_procfs_target::fetch_registers(), get_regset(), nto_procfs_target::interrupt(), nto_procfs_target::mourn_inferior(), procfs_breakpoint(), procfs_hw_watchpoint(), procfs_meminfo(), procfs_set_thread(), procfs_xfer_memory(), nto_procfs_target::resume(), nto_procfs_target::store_registers(), nto_procfs_target::thread_alive(), nto_procfs_target::update_thread_list(), update_thread_private_data(), nto_procfs_target::wait(), and nto_procfs_target::xfer_partial().
|
static |
Definition at line 161 of file nto-procfs.c.
Referenced by do_attach(), nto_procfs_target::files_info(), nto_node(), nto_procfs_target::open(), nto_procfs_target::pid_to_exec_file(), and procfs_pidlist().
|
static |
Definition at line 1470 of file nto-procfs.c.
Referenced by init_procfs_targets().
|
static |
Definition at line 129 of file nto-procfs.c.
Referenced by nto_procfs_target_native::info(), and init_procfs_targets().
|
static |
Definition at line 162 of file nto-procfs.c.
Referenced by nto_procfs_target::create_inferior(), nto_node(), and nto_procfs_target::open().
|
static |
Definition at line 1467 of file nto-procfs.c.
|
static |
Definition at line 143 of file nto-procfs.c.
Referenced by nto_procfs_target_procfs::info(), and init_procfs_targets().
|
static |
Definition at line 54 of file nto-procfs.c.
Referenced by nto_handle_sigint_twice(), and nto_procfs_target::wait().
|
static |
Definition at line 56 of file nto-procfs.c.
Referenced by _initialize_procfs(), env_execute_cli_command(), mi_execute_async_cli_command(), mi_execute_cli_command(), nto_procfs_target::pass_signals(), and nto_procfs_target::resume().