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 "m32r-tdep.h"
#include <algorithm>
Go to the source code of this file.
Classes | |
struct | m32r_unwind_cache |
Macros | |
#define | M32R_ARG_REGISTER_SIZE 4 |
#define | DEFAULT_SEARCH_LIMIT 128 |
Functions | |
static CORE_ADDR | m32r_frame_align (struct gdbarch *gdbarch, CORE_ADDR sp) |
static int | m32r_memory_insert_breakpoint (struct gdbarch *gdbarch, struct bp_target_info *bp_tgt) |
static int | m32r_memory_remove_breakpoint (struct gdbarch *gdbarch, struct bp_target_info *bp_tgt) |
static int | m32r_breakpoint_kind_from_pc (struct gdbarch *gdbarch, CORE_ADDR *pcptr) |
static const gdb_byte * | m32r_sw_breakpoint_from_kind (struct gdbarch *gdbarch, int kind, int *size) |
static const char * | m32r_register_name (struct gdbarch *gdbarch, int reg_nr) |
static struct type * | m32r_register_type (struct gdbarch *gdbarch, int reg_nr) |
static void | m32r_store_return_value (struct type *type, struct regcache *regcache, const gdb_byte *valbuf) |
static int | decode_prologue (struct gdbarch *gdbarch, CORE_ADDR start_pc, CORE_ADDR scan_limit, CORE_ADDR *pl_endptr, unsigned long *framelength) |
static CORE_ADDR | m32r_skip_prologue (struct gdbarch *gdbarch, CORE_ADDR pc) |
static struct m32r_unwind_cache * | m32r_frame_unwind_cache (frame_info_ptr this_frame, void **this_prologue_cache) |
static CORE_ADDR | m32r_push_dummy_call (struct gdbarch *gdbarch, struct value *function, struct regcache *regcache, CORE_ADDR bp_addr, int nargs, struct value **args, CORE_ADDR sp, function_call_return_method return_method, CORE_ADDR struct_addr) |
static void | m32r_extract_return_value (struct type *type, struct regcache *regcache, gdb_byte *dst) |
static enum return_value_convention | m32r_return_value (struct gdbarch *gdbarch, struct value *function, struct type *valtype, struct regcache *regcache, gdb_byte *readbuf, const gdb_byte *writebuf) |
static void | m32r_frame_this_id (frame_info_ptr this_frame, void **this_prologue_cache, struct frame_id *this_id) |
static struct value * | m32r_frame_prev_register (frame_info_ptr this_frame, void **this_prologue_cache, int regnum) |
static CORE_ADDR | m32r_frame_base_address (frame_info_ptr this_frame, void **this_cache) |
static struct gdbarch * | m32r_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches) |
void | _initialize_m32r_tdep () |
Variables | |
static const char *const | m32r_register_names [] |
static const struct frame_unwind | m32r_frame_unwind |
static const struct frame_base | m32r_frame_base |
static gdbarch_init_ftype | m32r_gdbarch_init |
#define DEFAULT_SEARCH_LIMIT 128 |
Definition at line 452 of file m32r-tdep.c.
Referenced by m32r_skip_prologue().
#define M32R_ARG_REGISTER_SIZE 4 |
Definition at line 42 of file m32r-tdep.c.
Referenced by m32r_push_dummy_call().
void _initialize_m32r_tdep | ( | ) |
Definition at line 912 of file m32r-tdep.c.
References gdbarch_register(), and m32r_gdbarch_init.
|
static |
Definition at line 264 of file m32r-tdep.c.
References after_prologue(), gdbarch_byte_order(), read_memory_unsigned_integer(), and safe_read_memory_integer().
Referenced by m32r_skip_prologue().
|
static |
Definition at line 171 of file m32r-tdep.c.
Referenced by m32r_gdbarch_init().
|
static |
Definition at line 753 of file m32r-tdep.c.
References reg_buffer::arch(), gdbarch_byte_order(), type::length(), regcache_cooked_read_unsigned(), RET1_REGNUM, and store_unsigned_integer().
Referenced by m32r_return_value().
|
static |
Definition at line 47 of file m32r-tdep.c.
Referenced by m32r_gdbarch_init().
|
static |
Definition at line 845 of file m32r-tdep.c.
References m32r_frame_unwind_cache().
|
static |
Definition at line 826 of file m32r-tdep.c.
References m32r_frame_unwind_cache(), regnum, and trad_frame_get_prev_register().
|
static |
Definition at line 796 of file m32r-tdep.c.
References m32r_unwind_cache::base, frame_id_build(), func, get_frame_func(), lookup_minimal_symbol(), m32r_frame_unwind_cache(), bound_minimal_symbol::minsym, and bound_minimal_symbol::value_address().
|
static |
Definition at line 519 of file m32r-tdep.c.
References FRAME_OBSTACK_ZALLOC, gdbarch_num_regs(), get_frame_arch(), get_frame_func(), get_frame_memory_unsigned(), get_frame_pc(), get_frame_register_unsigned(), LR_REGNUM, M32R_FP_REGNUM, M32R_PC_REGNUM, M32R_SP_REGNUM, m32r_unwind_cache::prev_sp, and trad_frame_alloc_saved_regs().
Referenced by m32r_frame_base_address(), m32r_frame_prev_register(), and m32r_frame_this_id().
|
static |
Definition at line 862 of file m32r-tdep.c.
References arches, core_addr_lessthan(), frame_base_set_default(), frame_unwind_append_unwinder(), gdbarch_alloc(), gdbarch_init_osabi(), gdbarch_list_lookup_by_info(), gdbarch::info(), m32r_breakpoint_kind_from_pc(), m32r_frame_align(), m32r_frame_base, m32r_frame_unwind, m32r_memory_insert_breakpoint(), m32r_memory_remove_breakpoint(), M32R_NUM_REGS, M32R_PC_REGNUM, m32r_push_dummy_call(), m32r_register_name(), m32r_register_type(), m32r_return_value(), m32r_skip_prologue(), M32R_SP_REGNUM, m32r_sw_breakpoint_from_kind(), set_gdbarch_breakpoint_kind_from_pc(), set_gdbarch_frame_align(), set_gdbarch_inner_than(), set_gdbarch_memory_insert_breakpoint(), set_gdbarch_memory_remove_breakpoint(), set_gdbarch_num_regs(), set_gdbarch_overlay_update(), set_gdbarch_pc_regnum(), set_gdbarch_push_dummy_call(), set_gdbarch_register_name(), set_gdbarch_register_type(), set_gdbarch_return_value(), set_gdbarch_skip_prologue(), set_gdbarch_sp_regnum(), set_gdbarch_sw_breakpoint_from_kind(), set_gdbarch_wchar_bit(), set_gdbarch_wchar_signed(), and simple_overlay_update().
|
static |
Definition at line 79 of file m32r-tdep.c.
References gdbarch_byte_order(), bp_target_info::placed_address, bp_target_info::reqstd_address, bp_target_info::shadow_contents, bp_target_info::shadow_len, target_read_memory(), and target_write_memory().
Referenced by m32r_gdbarch_init().
|
static |
Definition at line 138 of file m32r-tdep.c.
References gdbarch_byte_order(), bp_target_info::placed_address, bp_target_info::shadow_contents, and target_write_raw_memory().
Referenced by m32r_gdbarch_init().
|
static |
Definition at line 650 of file m32r-tdep.c.
References ARG1_REGNUM, ARGN_REGNUM, type::code(), extract_unsigned_integer(), gdbarch_byte_order(), type::length(), LR_REGNUM, M32R_ARG_REGISTER_SIZE, M32R_SP_REGNUM, regcache_cooked_write_unsigned(), register_size(), return_method_struct, store_unsigned_integer(), type, and write_memory().
Referenced by m32r_gdbarch_init().
|
static |
Definition at line 213 of file m32r-tdep.c.
References gdb_static_assert(), M32R_NUM_REGS, and m32r_register_names.
Referenced by m32r_gdbarch_init().
Definition at line 224 of file m32r-tdep.c.
References builtin_type::builtin_data_ptr, builtin_type::builtin_func_ptr, builtin_type::builtin_int32, builtin_type(), M32R_FP_REGNUM, M32R_PC_REGNUM, and M32R_SP_REGNUM.
Referenced by m32r_gdbarch_init().
|
static |
Definition at line 776 of file m32r-tdep.c.
References type::length(), m32r_extract_return_value(), m32r_store_return_value(), RETURN_VALUE_REGISTER_CONVENTION, and RETURN_VALUE_STRUCT_CONVENTION.
Referenced by m32r_gdbarch_init().
|
static |
Definition at line 455 of file m32r-tdep.c.
References decode_prologue(), DEFAULT_SEARCH_LIMIT, symtab_and_line::end, find_pc_line(), find_pc_partial_function(), gdbarch_byte_order(), symtab_and_line::line, symtab_and_line::pc, and safe_read_memory_integer().
Referenced by m32r_gdbarch_init().
|
static |
Definition at line 241 of file m32r-tdep.c.
References reg_buffer::arch(), extract_unsigned_integer(), gdbarch_byte_order(), type::length(), regcache_cooked_write_unsigned(), and RET1_REGNUM.
Referenced by m32r_return_value().
|
static |
Definition at line 182 of file m32r-tdep.c.
References gdbarch_byte_order(), and size.
Referenced by m32r_gdbarch_init().
|
static |
Definition at line 852 of file m32r-tdep.c.
Referenced by m32r_gdbarch_init().
|
static |
Definition at line 834 of file m32r-tdep.c.
Referenced by m32r_gdbarch_init().
|
static |
Definition at line 859 of file m32r-tdep.c.
Referenced by _initialize_m32r_tdep().
|
static |
Definition at line 205 of file m32r-tdep.c.
Referenced by m32r_register_name().