|
GDBserver
|
Go to the source code of this file.
| #define BIAS 2047 |
Definition at line 30 of file linux-sparc-low.c.
Referenced by sparc_fill_gregset_to_stack(), and sparc_store_gregset_from_stack().
| #define INSN_SIZE 4 |
Definition at line 36 of file linux-sparc-low.c.
Referenced by sparc_breakpoint_at().
| #define N_FPREGS_RANGES (sizeof (fpregs_ranges) / sizeof (struct regs_range_t)) |
Definition at line 99 of file linux-sparc-low.c.
Referenced by sparc_fill_fpregset(), and sparc_store_fpregset().
| #define N_GREGS_RANGES (sizeof (gregs_ranges) / sizeof (struct regs_range_t)) |
Definition at line 92 of file linux-sparc-low.c.
Referenced by sparc_fill_gregset(), and sparc_store_gregset().
| #define sparc_breakpoint_len INSN_SIZE |
Definition at line 241 of file linux-sparc-low.c.
| #define SPARC_CONTROL_REGS_NUM 6 |
Definition at line 40 of file linux-sparc-low.c.
| #define SPARC_F_REGS_NUM 48 |
Definition at line 39 of file linux-sparc-low.c.
| #define sparc_num_regs (SPARC_R_REGS_NUM + SPARC_F_REGS_NUM + SPARC_CONTROL_REGS_NUM) |
Definition at line 42 of file linux-sparc-low.c.
Referenced by sparc_cannot_fetch_register(), and sparc_cannot_store_register().
| #define SPARC_R_REGS_NUM 32 |
Definition at line 38 of file linux-sparc-low.c.
| void init_registers_sparc64 | ( | void | ) |
Referenced by initialize_low_arch().
| void initialize_low_arch | ( | void | ) |
Definition at line 336 of file linux-sparc-low.c.
References init_registers_sparc64().
| static void sparc_arch_setup | ( | void | ) | [static] |
Definition at line 274 of file linux-sparc-low.c.
References current_process(), and process_info::tdesc.
| static int sparc_breakpoint_at | ( | CORE_ADDR | where | ) | [static] |
Definition at line 245 of file linux-sparc-low.c.
References INSN_SIZE, memcmp(), target_ops::read_memory, sparc_breakpoint, and the_target.
| static int sparc_cannot_fetch_register | ( | int | regno | ) | [static] |
Definition at line 112 of file linux-sparc-low.c.
References sparc_num_regs, and sparc_regmap.
| static int sparc_cannot_store_register | ( | int | regno | ) | [static] |
Definition at line 106 of file linux-sparc-low.c.
References sparc_num_regs, and sparc_regmap.
| static void sparc_fill_fpregset | ( | struct regcache * | regcache, |
| void * | buf | ||
| ) | [static] |
Definition at line 157 of file linux-sparc-low.c.
References collect_register(), N_FPREGS_RANGES, regs_range_t::regno_end, and sparc_regmap.
| static void sparc_fill_gregset | ( | struct regcache * | regcache, |
| void * | buf | ||
| ) | [static] |
Definition at line 142 of file linux-sparc-low.c.
References collect_register(), N_GREGS_RANGES, regs_range_t::regno_end, sparc_fill_gregset_to_stack(), and sparc_regmap.
| static void sparc_fill_gregset_to_stack | ( | struct regcache * | regcache, |
| const void * | buf | ||
| ) | [static] |
Definition at line 118 of file linux-sparc-low.c.
References BIAS, collect_register(), find_regno(), memcpy(), sparc_regmap, regcache::tdesc, the_target, and target_ops::write_memory.
Referenced by sparc_fill_gregset().
| static CORE_ADDR sparc_get_pc | ( | struct regcache * | regcache | ) | [static] |
Definition at line 229 of file linux-sparc-low.c.
References collect_register_by_name(), and debug_threads.
| static struct regs_info* sparc_regs_info | ( | void | ) | [static, read] |
Definition at line 312 of file linux-sparc-low.c.
References regs_info.
| static CORE_ADDR sparc_reinsert_addr | ( | void | ) | [static] |
Definition at line 264 of file linux-sparc-low.c.
References collect_register_by_name(), current_inferior, and get_thread_regcache().
| static void sparc_store_fpregset | ( | struct regcache * | regcache, |
| const void * | buf | ||
| ) | [static] |
Definition at line 214 of file linux-sparc-low.c.
References N_FPREGS_RANGES, regs_range_t::regno_end, sparc_regmap, and supply_register().
| static void sparc_store_gregset | ( | struct regcache * | regcache, |
| const void * | buf | ||
| ) | [static] |
Definition at line 194 of file linux-sparc-low.c.
References memset(), N_GREGS_RANGES, regs_range_t::regno_end, sparc_regmap, sparc_store_gregset_from_stack(), and supply_register().
| static void sparc_store_gregset_from_stack | ( | struct regcache * | regcache, |
| const void * | buf | ||
| ) | [static] |
Definition at line 170 of file linux-sparc-low.c.
References BIAS, find_regno(), memcpy(), target_ops::read_memory, sparc_regmap, supply_register(), regcache::tdesc, and the_target.
Referenced by sparc_store_gregset().
| int debug_threads |
struct regs_range_t fpregs_ranges[] [static] |
{
{ 32, 79 },
{ 83, 83 }
}
Definition at line 94 of file linux-sparc-low.c.
struct regs_range_t gregs_ranges[] [static] |
{
{ 0, 31 },
{ 80, 82 },
{ 84, 85 }
}
Definition at line 86 of file linux-sparc-low.c.
{
NULL,
&sparc_usrregs_info,
&sparc_regsets_info
}
Definition at line 304 of file linux-sparc-low.c.
Referenced by sparc_regs_info().
const unsigned char sparc_breakpoint[INSN_SIZE] [static] |
{
0x91, 0xd0, 0x20, 0x01
}
Definition at line 238 of file linux-sparc-low.c.
Referenced by sparc_breakpoint_at().
int sparc_regmap[] [static] |
{
-1, 0*8, 1*8, 2*8, 3*8, 4*8, 5*8, 6*8,
7*8, 8*8, 9*8, 10*8, 11*8, 12*8, 13*8, 14*8,
-1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1,
0*4, 1*4, 2*4, 3*4, 4*4, 5*4, 6*4, 7*4,
8*4, 9*4, 10*4, 11*4, 12*4, 13*4, 14*4, 15*4,
16*4, 17*4, 18*4, 19*4, 20*4, 21*4, 22*4, 23*4,
24*4, 25*4, 26*4, 27*4, 28*4, 29*4, 30*4, 31*4,
16*8, 17*8, 18*8, 19*8, 20*8, 21*8, 22*8, 23*8,
24*8, 25*8, 26*8, 27*8, 28*8, 29*8, 30*8, 31*8,
17 *8,
18 *8,
16 *8,
32 *8,
-1,
19 *8,
}
Definition at line 50 of file linux-sparc-low.c.
Referenced by sparc_cannot_fetch_register(), sparc_cannot_store_register(), sparc_fill_fpregset(), sparc_fill_gregset(), sparc_fill_gregset_to_stack(), sparc_store_fpregset(), sparc_store_gregset(), and sparc_store_gregset_from_stack().
struct regset_info sparc_regsets[] [static] |
{
{ PTRACE_GETREGS, PTRACE_SETREGS, 0, sizeof (elf_gregset_t),
GENERAL_REGS,
sparc_fill_gregset, sparc_store_gregset },
{ PTRACE_GETFPREGS, PTRACE_SETFPREGS, 0, sizeof (fpregset_t),
FP_REGS,
sparc_fill_fpregset, sparc_store_fpregset },
{ 0, 0, 0, -1, -1, NULL, NULL }
}
Definition at line 279 of file linux-sparc-low.c.
struct regsets_info sparc_regsets_info [static] |
{
sparc_regsets,
0,
NULL,
}
Definition at line 289 of file linux-sparc-low.c.
struct usrregs_info sparc_usrregs_info [static] |
{
sparc_num_regs,
NULL
}
Definition at line 296 of file linux-sparc-low.c.
| struct target_desc* tdesc_sparc64 |
| struct linux_target_ops the_low_target |
{
sparc_arch_setup,
sparc_regs_info,
sparc_cannot_fetch_register,
sparc_cannot_store_register,
NULL,
sparc_get_pc,
NULL,
(const unsigned char *) sparc_breakpoint,
sparc_breakpoint_len,
sparc_reinsert_addr,
0,
sparc_breakpoint_at,
NULL, NULL, NULL, NULL,
NULL, NULL
}
Definition at line 317 of file linux-sparc-low.c.
1.7.6.1