GDBserver
|
#include "server.h"
#include "linux-low.h"
#include "elf/common.h"
#include <sys/ptrace.h>
#include <endian.h>
#include "gdb_proc_service.h"
#include <asm/ptrace.h>
Go to the source code of this file.
Classes | |
union | nios2_register |
Macros | |
#define | PTRACE_GET_THREAD_AREA 25 |
#define | nios2_num_regs 49 |
#define | nios2_breakpoint_len 4 |
Functions | |
void | init_registers_nios2_linux (void) |
static void | nios2_arch_setup (void) |
static int | nios2_cannot_fetch_register (int regno) |
static int | nios2_cannot_store_register (int regno) |
static CORE_ADDR | nios2_get_pc (struct regcache *regcache) |
static void | nios2_set_pc (struct regcache *regcache, CORE_ADDR pc) |
static CORE_ADDR | nios2_reinsert_addr (void) |
static int | nios2_breakpoint_at (CORE_ADDR where) |
ps_err_e | ps_get_thread_area (const struct ps_prochandle *ph, lwpid_t lwpid, int idx, void **base) |
static void | nios2_collect_register (struct regcache *regcache, int regno, union nios2_register *reg) |
static void | nios2_supply_register (struct regcache *regcache, int regno, const union nios2_register *reg) |
static void | nios2_fill_gregset (struct regcache *regcache, void *buf) |
static void | nios2_store_gregset (struct regcache *regcache, const void *buf) |
static const struct regs_info * | nios2_regs_info (void) |
void | initialize_low_arch (void) |
Variables | |
const struct target_desc * | tdesc_nios2_linux |
static int | nios2_regmap [] |
static const unsigned int | nios2_breakpoint = 0x003b6ffa |
static struct regset_info | nios2_regsets [] |
static struct regsets_info | nios2_regsets_info |
static struct usrregs_info | nios2_usrregs_info |
static struct regs_info | regs_info |
struct linux_target_ops | the_low_target |
#define nios2_breakpoint_len 4 |
Definition at line 123 of file linux-nios2-low.c.
#define nios2_num_regs 49 |
Definition at line 39 of file linux-nios2-low.c.
Referenced by nios2_fill_gregset(), and nios2_store_gregset().
#define PTRACE_GET_THREAD_AREA 25 |
Definition at line 31 of file linux-nios2-low.c.
Referenced by ps_get_thread_area().
void init_registers_nios2_linux | ( | void | ) |
Referenced by initialize_low_arch().
void initialize_low_arch | ( | void | ) |
Definition at line 259 of file linux-nios2-low.c.
References init_registers_nios2_linux(), and nios2_regsets_info.
|
static |
Definition at line 71 of file linux-nios2-low.c.
References current_process(), process_info::tdesc, and tdesc_nios2_linux.
|
static |
Definition at line 140 of file linux-nios2-low.c.
References nios2_breakpoint, target_ops::read_memory, and the_target.
|
static |
Definition at line 79 of file linux-nios2-low.c.
References nios2_regmap.
|
static |
Definition at line 90 of file linux-nios2-low.c.
References nios2_regmap.
|
static |
Definition at line 170 of file linux-nios2-low.c.
References collect_register(), and nios2_register::reg32.
Referenced by nios2_fill_gregset().
|
static |
Definition at line 189 of file linux-nios2-low.c.
References nios2_register::buf, nios2_collect_register(), and nios2_num_regs.
Definition at line 101 of file linux-nios2-low.c.
References nios2_register::buf, collect_register_by_name(), and nios2_register::reg32.
|
static |
Definition at line 237 of file linux-nios2-low.c.
References regs_info.
|
static |
Definition at line 128 of file linux-nios2-low.c.
References nios2_register::buf, collect_register_by_name(), current_thread, get_thread_regcache(), and nios2_register::reg32.
Definition at line 112 of file linux-nios2-low.c.
References nios2_register::buf, nios2_register::reg32, and supply_register_by_name().
|
static |
Definition at line 199 of file linux-nios2-low.c.
References nios2_register::buf, nios2_num_regs, and nios2_supply_register().
|
static |
Definition at line 180 of file linux-nios2-low.c.
References nios2_register::buf, and supply_register().
Referenced by nios2_store_gregset().
ps_err_e ps_get_thread_area | ( | const struct ps_prochandle * | ph, |
lwpid_t | lwpid, | ||
int | idx, | ||
void ** | base | ||
) |
Definition at line 153 of file linux-nios2-low.c.
References PS_ERR, PS_OK, and PTRACE_GET_THREAD_AREA.
|
static |
Definition at line 122 of file linux-nios2-low.c.
Referenced by nios2_breakpoint_at().
|
static |
Definition at line 57 of file linux-nios2-low.c.
Referenced by nios2_cannot_fetch_register(), and nios2_cannot_store_register().
|
static |
Definition at line 208 of file linux-nios2-low.c.
|
static |
Definition at line 216 of file linux-nios2-low.c.
Referenced by initialize_low_arch().
|
static |
Definition at line 223 of file linux-nios2-low.c.
Definition at line 229 of file linux-nios2-low.c.
Referenced by nios2_regs_info().
const struct target_desc* tdesc_nios2_linux |
Referenced by nios2_arch_setup().
struct linux_target_ops the_low_target |
Definition at line 242 of file linux-nios2-low.c.