GDB (xrefs)
|
#include "defs.h"
#include "arch-utils.h"
#include "reggroups.h"
#include "gdbtypes.h"
#include "gdb_assert.h"
#include "regcache.h"
#include "command.h"
#include "gdbcmd.h"
Go to the source code of this file.
void _initialize_reggroup | ( | void | ) |
Definition at line 275 of file reggroups.c.
References _, _initialize_reggroup, add_cmd(), add_group(), class_maintenance, gdbarch_data_register_post_init(), maintenance_print_reggroups(), maintenanceprintlist, reggroups_init(), and XMALLOC.
static void add_group | ( | struct reggroups * | groups, |
struct reggroup * | group, | ||
struct reggroup_el * | el | ||
) | [static] |
Definition at line 93 of file reggroups.c.
References gdb_assert, reggroup_el::group, reggroups::last, and reggroup_el::next.
Referenced by _initialize_reggroup(), and reggroup_add().
int default_register_reggroup_p | ( | struct gdbarch * | gdbarch, |
int | regnum, | ||
struct reggroup * | group | ||
) |
Definition at line 156 of file reggroups.c.
References all_reggroup, float_reggroup, gdbarch_num_regs(), gdbarch_register_name(), general_reggroup, register_type(), restore_reggroup, save_reggroup, TYPE_CODE, TYPE_CODE_FLT, TYPE_VECTOR, and vector_reggroup.
Referenced by arm_register_reggroup_p(), gdbarch_alloc(), i386_register_reggroup_p(), lm32_register_reggroup_p(), m68hc11_register_reggroup_p(), mt_register_reggroup_p(), s390_pseudo_register_reggroup_p(), sh_register_reggroup_p(), spu_register_reggroup_p(), and tdesc_register_reggroup_p().
static void maintenance_print_reggroups | ( | char * | args, |
int | from_tty | ||
) | [static] |
Definition at line 236 of file reggroups.c.
References _, do_cleanups(), gdb_fopen(), gdb_stdout, get_current_arch(), make_cleanup_ui_file_delete(), perror_with_name(), and reggroups_dump().
Referenced by _initialize_reggroup().
void reggroup_add | ( | struct gdbarch * | gdbarch, |
struct reggroup * | group | ||
) |
Definition at line 104 of file reggroups.c.
References add_group(), deprecated_set_gdbarch_data(), gdbarch_data(), GDBARCH_OBSTACK_ZALLOC, and reggroups_init().
Referenced by i386_add_reggroups(), lm32_add_reggroups(), m68hc11_add_reggroups(), make_regs(), mep_gdbarch_init(), and xtensa_add_reggroups().
const char* reggroup_name | ( | struct reggroup * | group | ) |
Definition at line 52 of file reggroups.c.
References reggroup::name.
Referenced by gdb_reggroup(), gdb_reggrouplist(), regcache_dump(), reggroups_dump(), registers_info(), and tui_show_register_group().
struct reggroup* reggroup_new | ( | const char * | name, |
enum reggroup_type | type | ||
) | [read] |
Definition at line 40 of file reggroups.c.
References reggroup::name, name, reggroup::type, type, and XMALLOC.
Referenced by _initialize_m32c_tdep(), _initialize_mep_tdep(), i386_init_reggroups(), m68hc11_init_reggroups(), and xtensa_init_reggroups().
struct reggroup* reggroup_next | ( | struct gdbarch * | gdbarch, |
struct reggroup * | last | ||
) | [read] |
Definition at line 126 of file reggroups.c.
References default_groups, reggroups::first, gdb_assert, gdbarch_data(), reggroup_el::group, and reggroup_el::next.
Referenced by gdb_reggroup(), gdb_reggrouplist(), regcache_dump(), reggroups_dump(), registers_info(), and tui_reg_next_command().
enum reggroup_type reggroup_type | ( | struct reggroup * | group | ) |
Definition at line 58 of file reggroups.c.
References reggroup::type.
static void reggroups_dump | ( | struct gdbarch * | gdbarch, |
struct ui_file * | file | ||
) | [static] |
Definition at line 185 of file reggroups.c.
References _, fprintf_unfiltered(), internal_error(), INTERNAL_REGGROUP, name, reggroup_name(), reggroup_next(), type, and USER_REGGROUP.
Referenced by maintenance_print_reggroups().
static void* reggroups_init | ( | struct gdbarch * | gdbarch | ) | [static] |
Definition at line 80 of file reggroups.c.
References reggroups::first, GDBARCH_OBSTACK_ZALLOC, and reggroups::last.
Referenced by _initialize_reggroup(), and reggroup_add().
Referenced by _initialize_reggroup(), and initialize_all_files().
Definition at line 260 of file reggroups.c.
struct reggroup* const all_reggroup = &all_group |
Definition at line 268 of file reggroups.c.
Referenced by aarch64_pseudo_register_reggroup_p(), alpha_register_reggroup_p(), arm_register_reggroup_p(), default_print_registers_info(), default_register_reggroup_p(), frame_info(), i386_add_reggroups(), i386_register_reggroup_p(), ia64_register_reggroup_p(), lm32_add_reggroups(), m32c_register_reggroup_p(), m68hc11_add_reggroups(), make_regs(), mep_gdbarch_init(), mep_register_reggroup_p(), mips_register_reggroup_p(), msp430_register_reggroup_p(), mt_register_reggroup_p(), rl78_register_reggroup_p(), rs6000_pseudo_register_reggroup_p(), sh_frame_cache(), xtensa_add_reggroups(), and xtensa_register_reggroup_p().
struct reggroups default_groups = { NULL, &default_groups.first } [static] |
Definition at line 121 of file reggroups.c.
Referenced by reggroup_next().
struct reggroup float_group = { "float", USER_REGGROUP } [static] |
Definition at line 257 of file reggroups.c.
struct reggroup* const float_reggroup = &float_group |
Definition at line 265 of file reggroups.c.
Referenced by aarch64_pseudo_register_reggroup_p(), alpha_register_reggroup_p(), arm_register_reggroup_p(), default_register_reggroup_p(), i386_add_reggroups(), i386_register_reggroup_p(), ia64_register_reggroup_p(), m68hc11_add_reggroups(), mips_register_reggroup_p(), mt_register_reggroup_p(), print_float_info(), rs6000_pseudo_register_reggroup_p(), sh_register_reggroup_p(), spu_register_reggroup_p(), tdesc_register_in_reggroup_p(), tui_reg_float_command(), xtensa_add_reggroups(), and xtensa_register_reggroup_p().
struct reggroup general_group = { "general", USER_REGGROUP } [static] |
Definition at line 256 of file reggroups.c.
struct reggroup* const general_reggroup = &general_group |
Definition at line 264 of file reggroups.c.
Referenced by alpha_register_reggroup_p(), default_print_registers_info(), default_register_reggroup_p(), i386_add_reggroups(), i386_register_reggroup_p(), ia64_register_reggroup_p(), lm32_add_reggroups(), lm32_register_reggroup_p(), m32c_register_reggroup_p(), m68hc11_add_reggroups(), make_regs(), mep_gdbarch_init(), mep_register_reggroup_p(), mips_register_reggroup_p(), msp430_register_reggroup_p(), mt_register_reggroup_p(), rl78_register_reggroup_p(), sh_register_reggroup_p(), spu_register_reggroup_p(), tdesc_register_in_reggroup_p(), tui_reg_general_command(), tui_show_registers(), xtensa_add_reggroups(), and xtensa_register_reggroup_p().
struct gdbarch_data* reggroups_data [static] |
Definition at line 77 of file reggroups.c.
struct reggroup restore_group = { "restore", INTERNAL_REGGROUP } [static] |
Definition at line 262 of file reggroups.c.
struct reggroup* const restore_reggroup = &restore_group |
Definition at line 270 of file reggroups.c.
Referenced by alpha_register_reggroup_p(), amd64_linux_register_reggroup_p(), arm_register_reggroup_p(), default_register_reggroup_p(), i386_add_reggroups(), i386_linux_register_reggroup_p(), ia64_register_reggroup_p(), m32c_register_reggroup_p(), m68hc11_add_reggroups(), m68hc11_register_reggroup_p(), make_regs(), mep_gdbarch_init(), mep_register_reggroup_p(), mips_register_reggroup_p(), msp430_register_reggroup_p(), regcache_restore(), rl78_register_reggroup_p(), s390_pseudo_register_reggroup_p(), spu_register_reggroup_p(), tdesc_register_in_reggroup_p(), xtensa_add_reggroups(), and xtensa_register_reggroup_p().
struct reggroup save_group = { "save", INTERNAL_REGGROUP } [static] |
Definition at line 261 of file reggroups.c.
struct reggroup* const save_reggroup = &save_group |
Definition at line 269 of file reggroups.c.
Referenced by alpha_register_reggroup_p(), amd64_linux_register_reggroup_p(), arm_register_reggroup_p(), default_register_reggroup_p(), i386_add_reggroups(), i386_linux_register_reggroup_p(), ia64_register_reggroup_p(), m32c_register_reggroup_p(), m68hc11_add_reggroups(), m68hc11_register_reggroup_p(), make_regs(), mep_gdbarch_init(), mep_register_reggroup_p(), mips_register_reggroup_p(), msp430_register_reggroup_p(), regcache_save(), rl78_register_reggroup_p(), s390_pseudo_register_reggroup_p(), spu_register_reggroup_p(), tdesc_register_in_reggroup_p(), xtensa_add_reggroups(), and xtensa_register_reggroup_p().
struct reggroup system_group = { "system", USER_REGGROUP } [static] |
Definition at line 258 of file reggroups.c.
struct reggroup* const system_reggroup = &system_group |
Definition at line 266 of file reggroups.c.
Referenced by alpha_register_reggroup_p(), amd64_linux_register_reggroup_p(), i386_add_reggroups(), i386_linux_register_reggroup_p(), lm32_add_reggroups(), lm32_register_reggroup_p(), m32c_register_reggroup_p(), m68hc11_add_reggroups(), make_regs(), rl78_register_reggroup_p(), sh_register_reggroup_p(), tui_reg_system_command(), xtensa_add_reggroups(), and xtensa_register_reggroup_p().
struct reggroup vector_group = { "vector", USER_REGGROUP } [static] |
Definition at line 259 of file reggroups.c.
struct reggroup* const vector_reggroup = &vector_group |
Definition at line 267 of file reggroups.c.
Referenced by aarch64_pseudo_register_reggroup_p(), default_register_reggroup_p(), i386_add_reggroups(), i386_register_reggroup_p(), ia64_register_reggroup_p(), m68hc11_add_reggroups(), mips_register_reggroup_p(), mt_register_reggroup_p(), print_vector_info(), rs6000_pseudo_register_reggroup_p(), sh_register_reggroup_p(), tdesc_register_in_reggroup_p(), xtensa_add_reggroups(), and xtensa_register_reggroup_p().