GDB (xrefs)
|
#include "defs.h"
#include "frame.h"
#include "frame-unwind.h"
#include "frame-base.h"
#include "symtab.h"
#include "gdbtypes.h"
#include "gdbcmd.h"
#include "gdbcore.h"
#include "value.h"
#include "inferior.h"
#include "symfile.h"
#include "objfiles.h"
#include "osabi.h"
#include "language.h"
#include "arch-utils.h"
#include "regcache.h"
#include "trad-frame.h"
#include "dis-asm.h"
#include "record.h"
#include "ft32-tdep.h"
#include "gdb/sim-ft32.h"
Go to the source code of this file.
Classes | |
struct | ft32_frame_cache |
Macros | |
#define | RAM_BIAS 0x800000 /* Bias added to RAM addresses. */ |
#define | IS_PUSH(inst) (((inst) & 0xfff00000) == 0x84000000) |
#define | PUSH_REG(inst) (FT32_R0_REGNUM + (((inst) >> 15) & 0x1f)) |
#define | IS_LINK(inst) (((inst) & 0xffff0000) == 0x95d00000) |
#define | LINK_SIZE(inst) ((inst) & 0xffff) |
Enumerations | |
enum | { REG_UNAVAIL = (CORE_ADDR) (-1) } |
Variables | |
static const char *const | ft32_register_names [] |
static const struct frame_unwind | ft32_frame_unwind |
static const struct frame_base | ft32_frame_base |
#define IS_LINK | ( | inst | ) | (((inst) & 0xffff0000) == 0x95d00000) |
Definition at line 158 of file ft32-tdep.c.
Referenced by ft32_analyze_prologue().
#define IS_PUSH | ( | inst | ) | (((inst) & 0xfff00000) == 0x84000000) |
Definition at line 156 of file ft32-tdep.c.
Referenced by ft32_analyze_prologue().
#define LINK_SIZE | ( | inst | ) | ((inst) & 0xffff) |
Definition at line 159 of file ft32-tdep.c.
Referenced by ft32_analyze_prologue().
#define PUSH_REG | ( | inst | ) | (FT32_R0_REGNUM + (((inst) >> 15) & 0x1f)) |
Definition at line 157 of file ft32-tdep.c.
Referenced by ft32_analyze_prologue().
#define RAM_BIAS 0x800000 /* Bias added to RAM addresses. */ |
Definition at line 43 of file ft32-tdep.c.
Referenced by ft32_frame_prev_register().
anonymous enum |
Enumerator | |
---|---|
REG_UNAVAIL |
Definition at line 50 of file ft32-tdep.c.
void _initialize_ft32_tdep | ( | void | ) |
Definition at line 544 of file ft32-tdep.c.
References ft32_gdbarch_init(), and register_gdbarch_init().
|
static |
Definition at line 349 of file ft32-tdep.c.
References FRAME_OBSTACK_ZALLOC, REG_UNAVAIL, and ft32_frame_cache::saved_regs.
Referenced by ft32_frame_cache().
|
static |
Definition at line 162 of file ft32-tdep.c.
References gdbarch::byte_order, ft32_frame_cache::established, ft32_frame_cache::framesize, gdbarch_byte_order(), IS_LINK, IS_PUSH, LINK_SIZE, offset, PUSH_REG, read_memory_unsigned_integer(), REG_UNAVAIL, regnum, and ft32_frame_cache::saved_regs.
Referenced by ft32_frame_cache(), and ft32_skip_prologue().
|
static |
Definition at line 81 of file ft32-tdep.c.
Referenced by ft32_gdbarch_init().
|
static |
Definition at line 477 of file ft32-tdep.c.
References frame_id_build(), get_frame_pc(), and get_frame_register_unsigned().
Referenced by ft32_gdbarch_init().
|
static |
Definition at line 304 of file ft32-tdep.c.
References gdbarch::byte_order, gdbarch_byte_order(), get_regcache_arch(), len, regcache_cooked_read_unsigned(), store_unsigned_integer(), and TYPE_LENGTH.
Referenced by ft32_return_value().
Definition at line 71 of file ft32-tdep.c.
Referenced by ft32_gdbarch_init().
|
static |
Definition at line 460 of file ft32-tdep.c.
References ft32_frame_cache::base, and ft32_frame_cache().
|
static |
Definition at line 365 of file ft32-tdep.c.
References ft32_frame_cache::base, ft32_frame_cache::established, ft32_alloc_frame_cache(), ft32_analyze_prologue(), get_frame_arch(), get_frame_func(), get_frame_pc(), get_frame_register_unsigned(), ft32_frame_cache::pc, REG_UNAVAIL, ft32_frame_cache::saved_regs, and ft32_frame_cache::saved_sp.
Referenced by ft32_frame_base_address(), ft32_frame_prev_register(), and ft32_frame_this_id().
|
static |
Definition at line 429 of file ft32-tdep.c.
References frame_unwind_got_constant(), frame_unwind_got_memory(), frame_unwind_got_register(), ft32_frame_cache(), gdb_assert, RAM_BIAS, REG_UNAVAIL, ft32_frame_cache::saved_regs, and ft32_frame_cache::saved_sp.
|
static |
Definition at line 413 of file ft32-tdep.c.
References ft32_frame_cache::base, frame_id_build(), ft32_frame_cache(), ft32_frame_cache::pc, and ft32_frame_cache::saved_sp.
|
static |
Definition at line 487 of file ft32-tdep.c.
References core_addr_lessthan(), frame_base_set_default(), frame_unwind_append_unwinder(), ft32_breakpoint_from_pc(), ft32_dummy_id(), ft32_frame_align(), ft32_read_pc(), ft32_register_name(), ft32_register_type(), ft32_return_value(), ft32_skip_prologue(), ft32_unwind_pc(), ft32_unwind_sp(), ft32_write_pc(), gdbarch_list::gdbarch, gdbarch_alloc(), gdbarch_init_osabi(), gdbarch_list_lookup_by_info(), set_gdbarch_breakpoint_from_pc(), set_gdbarch_dummy_id(), set_gdbarch_frame_align(), set_gdbarch_inner_than(), set_gdbarch_num_regs(), set_gdbarch_overlay_update(), set_gdbarch_pc_regnum(), set_gdbarch_print_insn(), set_gdbarch_read_pc(), set_gdbarch_register_name(), set_gdbarch_register_type(), set_gdbarch_return_value(), set_gdbarch_skip_prologue(), set_gdbarch_sp_regnum(), set_gdbarch_unwind_pc(), set_gdbarch_unwind_sp(), set_gdbarch_write_pc(), and simple_overlay_update().
Referenced by _initialize_ft32_tdep().
Definition at line 276 of file ft32-tdep.c.
References ft32_frame_cache::pc, and regcache_cooked_read_unsigned().
Referenced by ft32_gdbarch_init().
Definition at line 105 of file ft32-tdep.c.
References ft32_register_names.
Referenced by ft32_gdbarch_init().
Definition at line 117 of file ft32-tdep.c.
References builtin_type::builtin_data_ptr, builtin_type::builtin_func_ptr, builtin_type::builtin_int32, and builtin_type().
Referenced by ft32_gdbarch_init().
|
static |
Definition at line 330 of file ft32-tdep.c.
References ft32_extract_return_value(), ft32_store_return_value(), RETURN_VALUE_REGISTER_CONVENTION, RETURN_VALUE_STRUCT_CONVENTION, and TYPE_LENGTH.
Referenced by ft32_gdbarch_init().
Definition at line 225 of file ft32-tdep.c.
References symtab_and_line::end, find_pc_line(), find_pc_partial_function(), ft32_analyze_prologue(), language_asm, lookup_symbol(), max, ft32_frame_cache::pc, skip_prologue_using_sal(), SYMBOL_LANGUAGE, and VAR_DOMAIN.
Referenced by ft32_gdbarch_init().
|
static |
Definition at line 131 of file ft32-tdep.c.
References gdbarch::byte_order, extract_unsigned_integer(), gdbarch_byte_order(), get_regcache_arch(), len, regcache_cooked_write_unsigned(), and TYPE_LENGTH.
Referenced by ft32_return_value().
|
static |
Definition at line 404 of file ft32-tdep.c.
References frame_unwind_register_unsigned().
Referenced by ft32_gdbarch_init().
|
static |
Definition at line 295 of file ft32-tdep.c.
References frame_unwind_register_unsigned().
Referenced by ft32_gdbarch_init().
Definition at line 287 of file ft32-tdep.c.
References regcache_cooked_write_unsigned().
Referenced by ft32_gdbarch_init().
|
static |
Definition at line 468 of file ft32-tdep.c.
|
static |
Definition at line 447 of file ft32-tdep.c.
Definition at line 92 of file ft32-tdep.c.
Referenced by ft32_register_name().