GDBserver
Macros | Functions | Variables
linux-bfin-low.c File Reference
#include "server.h"
#include "linux-low.h"
#include <asm/ptrace.h>

Go to the source code of this file.

Macros

#define bfin_num_regs   ARRAY_SIZE (bfin_regmap)
 
#define bfin_breakpoint_len   2
 

Functions

void init_registers_bfin (void)
 
static int bfin_cannot_store_register (int regno)
 
static int bfin_cannot_fetch_register (int regno)
 
static CORE_ADDR bfin_get_pc (struct regcache *regcache)
 
static void bfin_set_pc (struct regcache *regcache, CORE_ADDR pc)
 
static int bfin_breakpoint_at (CORE_ADDR where)
 
static void bfin_arch_setup (void)
 
static const struct regs_infobfin_regs_info (void)
 
void initialize_low_arch (void)
 

Variables

const struct target_desctdesc_bfin
 
static int bfin_regmap []
 
static const unsigned char bfin_breakpoint [bfin_breakpoint_len] = {0xa1, 0x00}
 
static struct usrregs_info bfin_usrregs_info
 
static struct regs_info regs_info
 
struct linux_target_ops the_low_target
 

Macro Definition Documentation

#define bfin_breakpoint_len   2

Definition at line 75 of file linux-bfin-low.c.

Referenced by bfin_breakpoint_at().

#define bfin_num_regs   ARRAY_SIZE (bfin_regmap)

Definition at line 43 of file linux-bfin-low.c.

Referenced by bfin_cannot_fetch_register(), and bfin_cannot_store_register().

Function Documentation

static void bfin_arch_setup ( void  )
static

Definition at line 94 of file linux-bfin-low.c.

References current_process(), process_info::tdesc, and tdesc_bfin.

static int bfin_breakpoint_at ( CORE_ADDR  where)
static

Definition at line 79 of file linux-bfin-low.c.

References bfin_breakpoint, bfin_breakpoint_len, and read_inferior_memory().

static int bfin_cannot_fetch_register ( int  regno)
static

Definition at line 52 of file linux-bfin-low.c.

References bfin_num_regs.

static int bfin_cannot_store_register ( int  regno)
static

Definition at line 46 of file linux-bfin-low.c.

References bfin_num_regs.

static CORE_ADDR bfin_get_pc ( struct regcache regcache)
static

Definition at line 58 of file linux-bfin-low.c.

References collect_register_by_name().

static const struct regs_info* bfin_regs_info ( void  )
static

Definition at line 112 of file linux-bfin-low.c.

References regs_info.

static void bfin_set_pc ( struct regcache regcache,
CORE_ADDR  pc 
)
static

Definition at line 68 of file linux-bfin-low.c.

References supply_register_by_name().

void init_registers_bfin ( void  )

Referenced by initialize_low_arch().

void initialize_low_arch ( void  )

Definition at line 134 of file linux-bfin-low.c.

References init_registers_bfin().

Variable Documentation

const unsigned char bfin_breakpoint[bfin_breakpoint_len] = {0xa1, 0x00}
static

Definition at line 76 of file linux-bfin-low.c.

Referenced by bfin_breakpoint_at().

int bfin_regmap[]
static
Initial value:
=
{
PT_R0, PT_R1, PT_R2, PT_R3, PT_R4, PT_R5, PT_R6, PT_R7,
PT_P0, PT_P1, PT_P2, PT_P3, PT_P4, PT_P5, PT_USP, PT_FP,
PT_I0, PT_I1, PT_I2, PT_I3, PT_M0, PT_M1, PT_M2, PT_M3,
PT_B0, PT_B1, PT_B2, PT_B3, PT_L0, PT_L1, PT_L2, PT_L3,
PT_A0X, PT_A0W, PT_A1X, PT_A1W, PT_ASTAT, PT_RETS,
PT_LC0, PT_LT0, PT_LB0, PT_LC1, PT_LT1, PT_LB1,
-1 , -1 ,
-1 , PT_SEQSTAT, PT_SYSCFG, PT_PC, PT_RETX, PT_RETN, PT_RETE,
PT_PC,
}

Definition at line 30 of file linux-bfin-low.c.

struct usrregs_info bfin_usrregs_info
static
Initial value:
=
{
}
#define bfin_num_regs
static int bfin_regmap[]

Definition at line 99 of file linux-bfin-low.c.

struct regs_info regs_info
static
Initial value:
=
{
NULL,
}
static struct usrregs_info bfin_usrregs_info

Definition at line 105 of file linux-bfin-low.c.

Referenced by bfin_regs_info().

const struct target_desc* tdesc_bfin

Referenced by bfin_arch_setup().

struct linux_target_ops the_low_target
Initial value:
= {
NULL,
NULL,
2,
}
static void bfin_set_pc(struct regcache *regcache, CORE_ADDR pc)
static void bfin_arch_setup(void)
static int bfin_cannot_fetch_register(int regno)
static const unsigned char bfin_breakpoint[bfin_breakpoint_len]
static CORE_ADDR bfin_get_pc(struct regcache *regcache)
static const struct regs_info * bfin_regs_info(void)
static int bfin_breakpoint_at(CORE_ADDR where)
static int bfin_cannot_store_register(int regno)
#define bfin_breakpoint_len

Definition at line 117 of file linux-bfin-low.c.