GDB (xrefs)
|
#include "defs.h"
#include "arch-utils.h"
#include "dis-asm.h"
#include "frame.h"
#include "frame-unwind.h"
#include "trad-frame.h"
#include "symtab.h"
#include "value.h"
#include "gdbcmd.h"
#include "breakpoint.h"
#include "inferior.h"
#include "regcache.h"
#include "target.h"
#include "dwarf2/frame.h"
#include "osabi.h"
#include "target-descriptions.h"
#include "remote.h"
#include "gdbarch.h"
Go to the source code of this file.
Classes | |
struct | bpf_gdbarch_tdep |
Macros | |
#define | BPF_NUM_REGS (BPF_PC_REGNUM + 1) |
Enumerations | |
enum | bpf_regnum { BPF_R0_REGNUM , BPF_R1_REGNUM , BPF_R2_REGNUM , BPF_R3_REGNUM , BPF_R4_REGNUM , BPF_R5_REGNUM , BPF_R6_REGNUM , BPF_R7_REGNUM , BPF_R8_REGNUM , BPF_R9_REGNUM , BPF_R10_REGNUM , BPF_PC_REGNUM } |
enum | bpf_breakpoint_kinds { BPF_BP_KIND_BRKPT = 0 } |
Functions | |
static void | show_bpf_debug (struct ui_file *file, int from_tty, struct cmd_list_element *c, const char *value) |
static const char * | bpf_register_name (struct gdbarch *gdbarch, int reg) |
static struct type * | bpf_register_type (struct gdbarch *gdbarch, int reg) |
static int | bpf_dwarf2_reg_to_regnum (struct gdbarch *gdbarch, int reg) |
static int | bpf_gdb_print_insn (bfd_vma memaddr, disassemble_info *info) |
static CORE_ADDR | bpf_skip_prologue (struct gdbarch *gdbarch, CORE_ADDR start_pc) |
static void | bpf_frame_this_id (frame_info_ptr this_frame, void **this_prologue_cache, struct frame_id *this_id) |
static enum unwind_stop_reason | bpf_frame_unwind_stop_reason (frame_info_ptr this_frame, void **this_cache) |
static struct value * | bpf_frame_prev_register (frame_info_ptr this_frame, void **this_prologue_cache, int regnum) |
static int | bpf_breakpoint_kind_from_pc (struct gdbarch *gdbarch, CORE_ADDR *start_pc) |
static const gdb_byte * | bpf_sw_breakpoint_from_kind (struct gdbarch *gdbarch, int kind, int *size) |
static struct frame_id | bpf_dummy_id (struct gdbarch *gdbarch, frame_info_ptr this_frame) |
static CORE_ADDR | bpf_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 | bpf_extract_return_value (struct type *type, struct regcache *regcache, gdb_byte *valbuf) |
static void | bpf_store_return_value (struct type *type, struct regcache *regcache, const gdb_byte *valbuf) |
static enum return_value_convention | bpf_return_value (struct gdbarch *gdbarch, struct value *function, struct type *type, struct regcache *regcache, gdb_byte *readbuf, const gdb_byte *writebuf) |
static struct gdbarch * | bpf_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches) |
void | _initialize_bpf_tdep () |
Variables | |
static unsigned int | bpf_debug_flag = 0 |
static const char * | bpf_register_names [] |
static const struct frame_unwind | bpf_frame_unwind |
#define BPF_NUM_REGS (BPF_PC_REGNUM + 1) |
Definition at line 58 of file bpf-tdep.c.
Referenced by bpf_dwarf2_reg_to_regnum(), bpf_gdbarch_init(), and bpf_register_name().
enum bpf_breakpoint_kinds |
Enumerator | |
---|---|
BPF_BP_KIND_BRKPT |
Definition at line 202 of file bpf-tdep.c.
enum bpf_regnum |
Enumerator | |
---|---|
BPF_R0_REGNUM | |
BPF_R1_REGNUM | |
BPF_R2_REGNUM | |
BPF_R3_REGNUM | |
BPF_R4_REGNUM | |
BPF_R5_REGNUM | |
BPF_R6_REGNUM | |
BPF_R7_REGNUM | |
BPF_R8_REGNUM | |
BPF_R9_REGNUM | |
BPF_R10_REGNUM | |
BPF_PC_REGNUM |
Definition at line 42 of file bpf-tdep.c.
void _initialize_bpf_tdep | ( | ) |
Definition at line 374 of file bpf-tdep.c.
References add_setshow_zuinteger_cmd(), bpf_debug_flag, bpf_gdbarch_init(), class_maintenance, gdbarch_register(), setdebuglist, show_bpf_debug(), and showdebuglist.
|
static |
Definition at line 210 of file bpf-tdep.c.
References BPF_BP_KIND_BRKPT.
Referenced by bpf_gdbarch_init().
|
static |
Definition at line 238 of file bpf-tdep.c.
References frame_id_build(), gdbarch_sp_regnum(), get_frame_pc(), and get_frame_register_unsigned().
Referenced by bpf_gdbarch_init().
|
static |
Definition at line 115 of file bpf-tdep.c.
References BPF_NUM_REGS.
Referenced by bpf_gdbarch_init().
|
static |
Definition at line 264 of file bpf-tdep.c.
References BPF_R0_REGNUM, readable_regcache::cooked_read(), and type::length().
Referenced by bpf_return_value().
|
static |
Definition at line 177 of file bpf-tdep.c.
References frame_unwind_got_register(), and regnum.
|
static |
Definition at line 157 of file bpf-tdep.c.
|
static |
Definition at line 168 of file bpf-tdep.c.
|
static |
Definition at line 125 of file bpf-tdep.c.
References default_print_insn().
Referenced by bpf_gdbarch_init().
|
static |
Definition at line 316 of file bpf-tdep.c.
References arches, bpf_breakpoint_kind_from_pc(), bpf_dummy_id(), bpf_dwarf2_reg_to_regnum(), bpf_frame_unwind, bpf_gdb_print_insn(), BPF_NUM_REGS, BPF_PC_REGNUM, bpf_push_dummy_call(), BPF_R10_REGNUM, bpf_register_name(), bpf_register_type(), bpf_return_value(), bpf_skip_prologue(), bpf_sw_breakpoint_from_kind(), core_addr_lessthan(), frame_unwind_append_unwinder(), gdbarch_alloc(), gdbarch_init_osabi(), gdbarch_list_lookup_by_info(), gdbarch::info(), ON_STACK, set_gdbarch_breakpoint_kind_from_pc(), set_gdbarch_call_dummy_location(), set_gdbarch_dummy_id(), set_gdbarch_dwarf2_reg_to_regnum(), set_gdbarch_frame_args_skip(), set_gdbarch_inner_than(), set_gdbarch_num_regs(), set_gdbarch_pc_regnum(), set_gdbarch_print_insn(), 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(), and set_gdbarch_sw_breakpoint_from_kind().
Referenced by _initialize_bpf_tdep().
|
static |
Definition at line 248 of file bpf-tdep.c.
References gdb_printf(), gdb_stdlog, and paddress().
Referenced by bpf_gdbarch_init().
|
static |
Definition at line 94 of file bpf-tdep.c.
References BPF_NUM_REGS, bpf_register_names, and gdb_static_assert().
Referenced by bpf_gdbarch_init().
Definition at line 103 of file bpf-tdep.c.
References BPF_PC_REGNUM, BPF_R10_REGNUM, builtin_type::builtin_data_ptr, builtin_type::builtin_func_ptr, builtin_type::builtin_int64, and builtin_type().
Referenced by bpf_gdbarch_init().
|
static |
Definition at line 293 of file bpf-tdep.c.
References bpf_extract_return_value(), bpf_store_return_value(), type::length(), RETURN_VALUE_REGISTER_CONVENTION, and RETURN_VALUE_STRUCT_CONVENTION.
Referenced by bpf_gdbarch_init().
|
static |
Definition at line 136 of file bpf-tdep.c.
References gdb_printf(), gdb_stdlog, and paddress().
Referenced by bpf_gdbarch_init().
|
static |
Definition at line 278 of file bpf-tdep.c.
References BPF_R0_REGNUM, regcache::cooked_write(), and type::length().
Referenced by bpf_return_value().
|
static |
Definition at line 219 of file bpf-tdep.c.
References BPF_BP_KIND_BRKPT, and size.
Referenced by bpf_gdbarch_init().
|
static |
Definition at line 76 of file bpf-tdep.c.
References gdb_printf().
Referenced by _initialize_bpf_tdep().
|
static |
Definition at line 71 of file bpf-tdep.c.
Referenced by _initialize_bpf_tdep().
|
static |
Definition at line 185 of file bpf-tdep.c.
Referenced by bpf_gdbarch_init().
|
static |
Definition at line 85 of file bpf-tdep.c.
Referenced by bpf_register_name().