GDBserver
|
#include "server.h"
#include "linux-low.h"
#include <sys/ptrace.h>
#include <endian.h>
#include "nat/mips-linux-watch.h"
#include "gdb_proc_service.h"
#include <asm/ptrace.h>
Go to the source code of this file.
Classes | |
union | mips_register |
struct | arch_process_info |
struct | arch_lwp_info |
Macros | |
#define | PTRACE_GET_THREAD_AREA 25 |
#define | mips_num_regs 73 |
#define | mips_dsp_num_regs 80 |
#define | DSP_BASE 71 |
#define | DSP_CONTROL 77 |
#define | mips_base_regs |
#define | mips_dsp_regs |
#define | mips_breakpoint_len 4 |
Variables | |
const struct target_desc * | tdesc_mips_linux |
const struct target_desc * | tdesc_mips_dsp_linux |
const struct target_desc * | tdesc_mips64_linux |
const struct target_desc * | tdesc_mips64_dsp_linux |
static int | mips_regmap [mips_num_regs] |
static int | mips_dsp_regmap [mips_dsp_num_regs] |
static unsigned char | mips_dsp_regset_bitmap [(mips_dsp_num_regs+7)/8] |
static int | have_dsp = -1 |
static const unsigned int | mips_breakpoint = 0x0005000d |
static struct regset_info | mips_regsets [] |
static struct regsets_info | mips_regsets_info |
static struct usrregs_info | mips_dsp_usrregs_info |
static struct usrregs_info | mips_usrregs_info |
static struct regs_info | dsp_regs_info |
static struct regs_info | regs_info |
struct linux_target_ops | the_low_target |
#define DSP_BASE 71 |
Definition at line 63 of file linux-mips-low.c.
#define DSP_CONTROL 77 |
Definition at line 64 of file linux-mips-low.c.
Referenced by mips_read_description().
#define mips_base_regs |
Definition at line 78 of file linux-mips-low.c.
#define mips_breakpoint_len 4 |
Definition at line 267 of file linux-mips-low.c.
#define mips_dsp_num_regs 80 |
Definition at line 58 of file linux-mips-low.c.
#define mips_dsp_regs |
Definition at line 96 of file linux-mips-low.c.
#define mips_num_regs 73 |
Definition at line 57 of file linux-mips-low.c.
#define PTRACE_GET_THREAD_AREA 25 |
Definition at line 50 of file linux-mips-low.c.
Referenced by ps_get_thread_area().
|
static |
Definition at line 157 of file linux-mips-low.c.
References linux_target_ops::regs_info, the_low_target, and regs_info::usrregs.
Referenced by mips_cannot_fetch_register(), and mips_cannot_store_register().
void init_registers_mips64_dsp_linux | ( | void | ) |
Referenced by initialize_low_arch().
void init_registers_mips64_linux | ( | void | ) |
Referenced by initialize_low_arch().
void init_registers_mips_dsp_linux | ( | void | ) |
Referenced by initialize_low_arch().
void init_registers_mips_linux | ( | void | ) |
Referenced by initialize_low_arch().
void initialize_low_arch | ( | void | ) |
Definition at line 904 of file linux-mips-low.c.
References init_registers_mips64_dsp_linux(), init_registers_mips64_linux(), init_registers_mips_dsp_linux(), and init_registers_mips_linux().
|
static |
Definition at line 350 of file linux-mips-low.c.
References mips_watchpoint::addr, mips_watchpoint::len, mips_watchpoint::next, mips_watchpoint::type, and xmalloc().
Referenced by mips_insert_point(), and mips_linux_new_fork().
|
static |
Definition at line 151 of file linux-mips-low.c.
References current_process(), mips_read_description(), and process_info::tdesc.
|
static |
Definition at line 282 of file linux-mips-low.c.
References mips_breakpoint, target_ops::read_memory, and the_target.
|
static |
Definition at line 205 of file linux-mips-low.c.
References current_process(), find_regno(), get_usrregs_info(), and process_info::tdesc.
|
static |
Definition at line 221 of file linux-mips-low.c.
References current_process(), find_regno(), get_usrregs_info(), and process_info::tdesc.
Definition at line 246 of file linux-mips-low.c.
References mips_register::buf, collect_register_by_name(), mips_register::reg32, mips_register::reg64, register_size(), and regcache::tdesc.
|
static |
Definition at line 456 of file linux-mips-low.c.
References all_threads, process_info_private::arch_private, current_process(), current_thread, arch_process_info::current_watches, find_inferior(), lwpid_of, mips_add_watchpoint(), mips_linux_read_watch_registers(), mips_linux_watch_populate_regs(), mips_linux_watch_try_one_watch(), mips_linux_watch_type_to_irw(), pid_of, process_info::priv, raw_bkpt_type_to_target_hw_bp_type(), update_watch_registers_callback(), arch_process_info::watch_mirror, arch_process_info::watch_readback, and arch_process_info::watch_readback_valid.
|
static |
Definition at line 371 of file linux-mips-low.c.
References mips_watchpoint::addr, process_info_private::arch_private, arch_process_info::current_watches, gdb_assert, mips_watchpoint::len, mips_add_watchpoint(), mips_watchpoint::next, process_info::priv, mips_watchpoint::type, arch_process_info::watch_mirror, arch_process_info::watch_readback, and arch_process_info::watch_readback_valid.
|
static |
Definition at line 326 of file linux-mips-low.c.
References xcalloc().
|
static |
Definition at line 338 of file linux-mips-low.c.
References lwp_info::arch_private, arch_lwp_info::watch_registers_changed, and xcalloc().
|
static |
Definition at line 414 of file linux-mips-low.c.
References process_info_private::arch_private, lwp_info::arch_private, find_process_pid(), get_lwp_thread, mips_linux_watch_get_num_valid(), perror_with_name(), process_info::priv, ptid_get_lwp(), ptid_get_pid(), ptid_of, PTRACE_SET_WATCH_REGS, arch_process_info::watch_mirror, and arch_lwp_info::watch_registers_changed.
|
static |
Definition at line 125 of file linux-mips-low.c.
References current_thread, DSP_CONTROL, errno, have_dsp, lwpid_of, perror_with_name(), and tdesc_mips_linux.
Referenced by mips_arch_setup().
|
static |
Definition at line 868 of file linux-mips-low.c.
References dsp_regs_info, have_dsp, and regs_info.
|
static |
Definition at line 273 of file linux-mips-low.c.
References mips_register::buf, collect_register_by_name(), current_thread, get_thread_regcache(), mips_register::reg32, mips_register::reg64, register_size(), and regcache::tdesc.
|
static |
Definition at line 503 of file linux-mips-low.c.
References mips_watchpoint::addr, all_threads, process_info_private::arch_private, current_process(), arch_process_info::current_watches, find_inferior(), gdb_assert, mips_watchpoint::len, mips_linux_watch_populate_regs(), mips_watchpoint::next, pid_of, process_info::priv, raw_bkpt_type_to_target_hw_bp_type(), mips_watchpoint::type, update_watch_registers_callback(), arch_process_info::watch_mirror, arch_process_info::watch_readback, and arch_process_info::watch_readback_valid.
Definition at line 254 of file linux-mips-low.c.
References mips_register::buf, mips_register::reg32, mips_register::reg64, register_size(), supply_register_by_name(), and regcache::tdesc.
|
static |
Definition at line 554 of file linux-mips-low.c.
References process_info_private::arch_private, current_process(), current_thread, lwpid_of, MAX_DEBUG_REGISTER, mips_linux_read_watch_registers(), mips_linux_watch_get_num_valid(), mips_linux_watch_get_watchhi(), num_valid, process_info::priv, R_MASK, W_MASK, arch_process_info::watch_readback, and arch_process_info::watch_readback_valid.
|
static |
Definition at line 582 of file linux-mips-low.c.
References mips_watchpoint::addr, process_info_private::arch_private, current_process(), current_thread, arch_process_info::current_watches, IRW_MASK, mips_watchpoint::len, lwpid_of, MAX_DEBUG_REGISTER, mips_linux_read_watch_registers(), mips_linux_watch_get_num_valid(), mips_linux_watch_get_watchhi(), mips_linux_watch_get_watchlo(), mips_linux_watch_type_to_irw(), mips_watchpoint::next, num_valid, process_info::priv, R_MASK, mips_watchpoint::type, W_MASK, arch_process_info::watch_readback, and arch_process_info::watch_readback_valid.
|
static |
Definition at line 439 of file linux-mips-low.c.
References Z_PACKET_ACCESS_WP, Z_PACKET_READ_WP, and Z_PACKET_WRITE_WP.
ps_err_e ps_get_thread_area | ( | const struct ps_prochandle * | ph, |
lwpid_t | lwpid, | ||
int | idx, | ||
void ** | base | ||
) |
Definition at line 643 of file linux-mips-low.c.
References PS_ERR, PS_OK, and PTRACE_GET_THREAD_AREA.
|
static |
Definition at line 299 of file linux-mips-low.c.
References lwp_info::arch_private, get_thread_lwp, linux_stop_lwp(), pid_of, lwp_info::stopped, and arch_lwp_info::watch_registers_changed.
Referenced by mips_insert_point(), and mips_remove_point().
|
static |
Definition at line 853 of file linux-mips-low.c.
Referenced by mips_regs_info().
|
static |
Definition at line 119 of file linux-mips-low.c.
Referenced by mips_read_description(), and mips_regs_info().
|
static |
Definition at line 266 of file linux-mips-low.c.
Referenced by mips_breakpoint_at().
|
static |
Definition at line 106 of file linux-mips-low.c.
|
static |
Definition at line 115 of file linux-mips-low.c.
|
static |
Definition at line 841 of file linux-mips-low.c.
|
static |
Definition at line 101 of file linux-mips-low.c.
|
static |
Definition at line 824 of file linux-mips-low.c.
|
static |
Definition at line 834 of file linux-mips-low.c.
|
static |
Definition at line 847 of file linux-mips-low.c.
Definition at line 860 of file linux-mips-low.c.
Referenced by mips_regs_info().
const struct target_desc* tdesc_mips64_dsp_linux |
const struct target_desc* tdesc_mips64_linux |
const struct target_desc* tdesc_mips_dsp_linux |
const struct target_desc* tdesc_mips_linux |
Referenced by mips_read_description().
struct linux_target_ops the_low_target |
Definition at line 876 of file linux-mips-low.c.
Referenced by get_usrregs_info().