GDBserver
|
#include "server.h"
#include "lynx-low.h"
#include <stdint.h>
#include <stddef.h>
#include <limits.h>
#include <sys/ptrace.h>
Go to the source code of this file.
Classes | |
struct | usr_econtext_s |
struct | usr_fcontext_s |
Defines | |
#define | R0_REGNUM 0 |
#define | F0_REGNUM 32 |
#define | PC_REGNUM 64 |
#define | MSR_REGNUM 65 |
#define | CR_REGNUM 66 |
#define | LR_REGNUM 67 |
#define | CTR_REGNUM 68 |
#define | XER_REGNUM 69 |
#define | FPSCR_REGNUM 70 |
Typedefs | |
typedef struct usr_econtext_s | usr_econtext_t |
typedef struct usr_fcontext_s | usr_fcontext_t |
Functions | |
void | init_registers_powerpc_32 (void) |
static void | lynx_ppc_fill_gregset (struct regcache *regcache, char *buf) |
static void | lynx_ppc_store_gregset (struct regcache *regcache, const char *buf) |
static void | lynx_ppc_fill_fpregset (struct regcache *regcache, char *buf) |
static void | lynx_ppc_store_fpregset (struct regcache *regcache, const char *buf) |
static void | lynx_ppc_arch_setup (void) |
Variables | |
struct target_desc * | tdesc_powerpc_32 |
struct lynx_regset_info | lynx_target_regsets [] |
struct lynx_target_ops | the_low_target |
#define CR_REGNUM 66 |
Definition at line 64 of file lynx-ppc-low.c.
Referenced by lynx_ppc_fill_gregset(), and lynx_ppc_store_gregset().
#define CTR_REGNUM 68 |
Definition at line 66 of file lynx-ppc-low.c.
Referenced by lynx_ppc_fill_gregset(), and lynx_ppc_store_gregset().
#define F0_REGNUM 32 |
Definition at line 61 of file lynx-ppc-low.c.
Referenced by lynx_ppc_fill_fpregset(), and lynx_ppc_store_fpregset().
#define FPSCR_REGNUM 70 |
Definition at line 68 of file lynx-ppc-low.c.
Referenced by lynx_ppc_fill_fpregset(), and lynx_ppc_store_fpregset().
#define LR_REGNUM 67 |
Definition at line 65 of file lynx-ppc-low.c.
Referenced by lynx_ppc_fill_gregset(), and lynx_ppc_store_gregset().
#define MSR_REGNUM 65 |
Definition at line 63 of file lynx-ppc-low.c.
Referenced by lynx_ppc_fill_gregset(), and lynx_ppc_store_gregset().
#define PC_REGNUM 64 |
Definition at line 62 of file lynx-ppc-low.c.
Referenced by lynx_ppc_fill_gregset(), and lynx_ppc_store_gregset().
#define R0_REGNUM 0 |
Definition at line 60 of file lynx-ppc-low.c.
Referenced by lynx_ppc_fill_gregset(), and lynx_ppc_store_gregset().
#define XER_REGNUM 69 |
Definition at line 67 of file lynx-ppc-low.c.
Referenced by lynx_ppc_fill_gregset(), and lynx_ppc_store_gregset().
typedef struct usr_econtext_s usr_econtext_t |
typedef struct usr_fcontext_s usr_fcontext_t |
void init_registers_powerpc_32 | ( | void | ) |
Referenced by lynx_ppc_arch_setup().
static void lynx_ppc_arch_setup | ( | void | ) | [static] |
Definition at line 165 of file lynx-ppc-low.c.
References init_registers_powerpc_32(), and lynx_tdesc.
static void lynx_ppc_fill_fpregset | ( | struct regcache * | regcache, |
char * | buf | ||
) | [static] |
Definition at line 131 of file lynx-ppc-low.c.
References collect_register(), F0_REGNUM, and FPSCR_REGNUM.
static void lynx_ppc_fill_gregset | ( | struct regcache * | regcache, |
char * | buf | ||
) | [static] |
Definition at line 77 of file lynx-ppc-low.c.
References collect_register(), CR_REGNUM, CTR_REGNUM, LR_REGNUM, MSR_REGNUM, PC_REGNUM, R0_REGNUM, and XER_REGNUM.
static void lynx_ppc_store_fpregset | ( | struct regcache * | regcache, |
const char * | buf | ||
) | [static] |
Definition at line 148 of file lynx-ppc-low.c.
References F0_REGNUM, FPSCR_REGNUM, and supply_register().
static void lynx_ppc_store_gregset | ( | struct regcache * | regcache, |
const char * | buf | ||
) | [static] |
Definition at line 104 of file lynx-ppc-low.c.
References CR_REGNUM, CTR_REGNUM, LR_REGNUM, MSR_REGNUM, PC_REGNUM, R0_REGNUM, supply_register(), and XER_REGNUM.
struct lynx_regset_info lynx_target_regsets[] |
{ {PTRACE_GETREGS, PTRACE_SETREGS, sizeof(usr_econtext_t), lynx_ppc_fill_gregset, lynx_ppc_store_gregset}, { PTRACE_GETFPREGS, PTRACE_SETFPREGS, sizeof(usr_fcontext_t), lynx_ppc_fill_fpregset, lynx_ppc_store_fpregset }, {0, 0, -1, NULL, NULL } }
Definition at line 173 of file lynx-ppc-low.c.
struct target_desc* tdesc_powerpc_32 |
struct lynx_target_ops the_low_target |
{ lynx_ppc_arch_setup, }
Definition at line 186 of file lynx-ppc-low.c.