GDB (xrefs)

Classes | Functions | Variables
/tmp/gdb-8.1/gdb/reggroups.c File Reference
`#include "defs.h"`
`#include "arch-utils.h"`
`#include "reggroups.h"`
`#include "gdbtypes.h"`
`#include "regcache.h"`
`#include "command.h"`
`#include "gdbcmd.h"`
`#include "gdb_obstack.h"`

Go to the source code of this file.

## Classes
struct | reggroup
struct | reggroup_el
struct | reggroups

## Functions
struct reggroup * | reggroup_new (const char *name, enum reggroup_type type)
struct reggroup * | reggroup_gdbarch_new (struct gdbarch *gdbarch, const char *name, enum reggroup_type type)
const char * | reggroup_name (struct reggroup *group)
enum reggroup_type | reggroup_type (struct reggroup *group)
static void * | reggroups_init (struct obstack *obstack)
static void | add_group (struct reggroups *groups, struct reggroup *group, struct reggroup_el *el)
void | reggroup_add (struct gdbarch *gdbarch, struct reggroup *group)
struct reggroup * | reggroup_next (struct gdbarch *gdbarch, struct reggroup *last)
struct reggroup * | reggroup_prev (struct gdbarch *gdbarch, struct reggroup *curr)
int | default_register_reggroup_p (struct gdbarch *gdbarch, int regnum, struct reggroup *group)
reggroup * | reggroup_find (struct gdbarch *gdbarch, const char *name)
static void | reggroups_dump (struct gdbarch *gdbarch, struct ui_file *file)
static void | maintenance_print_reggroups (const char *args, int from_tty)
void | _initialize_reggroup (void)

## Variables
static struct gdbarch_data * | reggroups_data
static struct reggroups | default_groups = { NULL, &default_groups.first }
static struct reggroup | general_group = { "general", USER_REGGROUP }
static struct reggroup | float_group = { "float", USER_REGGROUP }
static struct reggroup | system_group = { "system", USER_REGGROUP }
static struct reggroup | vector_group = { "vector", USER_REGGROUP }
static struct reggroup | all_group = { "all", USER_REGGROUP }
static struct reggroup | save_group = { "save", INTERNAL_REGGROUP }
static struct reggroup | restore_group = { "restore", INTERNAL_REGGROUP }
struct reggroup *const | general_reggroup = &general_group
struct reggroup *const | float_reggroup = &float_group
struct reggroup *const | system_reggroup = &system_group
struct reggroup *const | vector_reggroup = &vector_group
struct reggroup *const | all_reggroup = &all_group
struct reggroup *const | save_reggroup = &save_group
struct reggroup *const | restore_reggroup = &restore_group

## Function Documentation

## ◆ _initialize_reggroup()

void _initialize_reggroup | ( | void |  | ) |

Definition at line 323 of file reggroups.c.

References _, add_cmd(), add_group(), all_reggroup, class_maintenance, default_groups, float_reggroup, gdbarch_data_register_pre_init(), general_reggroup, maintenance_print_reggroups(), maintenanceprintlist, reggroups_data, reggroups_init(), restore_reggroup, save_reggroup, system_reggroup, vector_reggroup, and XNEW.

## ◆ add_group()

static void add_group | ( | struct reggroups * | groups,
|  | struct reggroup * | group,
|  | struct reggroup_el * | el
| ) |  |
| static

Definition at line 106 of file reggroups.c.

References gdb_assert, reggroup_el::group, reggroups::last, and reggroup_el::next.

Referenced by _initialize_reggroup(), and reggroup_add().

## ◆ default_register_reggroup_p()

int default_register_reggroup_p | ( | struct gdbarch * | gdbarch,
|  | int | regnum,
|  | struct reggroup * | group
| ) |  |

Definition at line 192 of file reggroups.c.

References all_reggroup, float_reggroup, gdbarch_num_regs(), gdbarch_register_name(), general_reggroup, register_type(), regnum, 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(), nds32_register_reggroup_p(), s390_pseudo_register_reggroup_p(), sh_register_reggroup_p(), spu_register_reggroup_p(), and tdesc_register_reggroup_p().

## ◆ maintenance_print_reggroups()

static void maintenance_print_reggroups | ( | const char * | args,
|  | int | from_tty
| ) |  |
| static

Definition at line 289 of file reggroups.c.

References _, gdb_stdout, get_current_arch(), stdio_file::open(), perror_with_name(), and reggroups_dump().

Referenced by _initialize_reggroup().

## ◆ reggroup_add()

void reggroup_add | ( | struct gdbarch * | gdbarch,
|  | struct reggroup * | group
| ) |  |

Definition at line 117 of file reggroups.c.

References add_group(), GDBARCH_OBSTACK_ZALLOC, and reggroups_data.

Referenced by i386_add_reggroups(), lm32_add_reggroups(), m68hc11_add_reggroups(), make_regs(), mep_gdbarch_init(), nds32_add_reggroups(), or1k_gdbarch_init(), tdesc_use_registers(), and xtensa_add_reggroups().

## ◆ reggroup_find()

reggroup* reggroup_find | ( | struct gdbarch * | gdbarch,
|  | const char * | name
| ) |  |

Definition at line 221 of file reggroups.c.

References name, reggroup_name(), and reggroup_next().

Referenced by tdesc_use_registers().

## ◆ reggroup_gdbarch_new()

struct reggroup* reggroup_gdbarch_new | ( | struct gdbarch * | gdbarch,
|  | const char * | name,
|  | enum reggroup_type | type
| ) |  |

Definition at line 52 of file reggroups.c.

References gdbarch_obstack_strdup(), GDBARCH_OBSTACK_ZALLOC, reggroup::name, name, reggroup::type, and type.

Referenced by tdesc_use_registers().

## ◆ reggroup_name()

const char* reggroup_name | ( | struct reggroup * | group | ) |

Definition at line 66 of file reggroups.c.

References reggroup::name.

Referenced by regcache::dump(), nds32_register_reggroup_p(), reg_or_group_completer_1(), reggroup_find(), reggroups_dump(), registers_info(), tdesc_register_in_reggroup_p(), tui_reg_command(), and tui_show_register_group().

## ◆ reggroup_new()

struct reggroup* reggroup_new | ( | const char * | name,
|  | enum reggroup_type | type
| ) |  |

Definition at line 40 of file reggroups.c.

References reggroup::name, name, reggroup::type, type, and XNEW.

Referenced by _initialize_m32c_tdep(), _initialize_mep_tdep(), i386_init_reggroups(), m68hc11_init_reggroups(), nds32_init_reggroups(), and xtensa_init_reggroups().

## ◆ reggroup_next()

struct reggroup* reggroup_next | ( | struct gdbarch * | gdbarch,
|  | struct reggroup * | last
| ) |  |

Definition at line 133 of file reggroups.c.

References default_groups, reggroups::first, gdb_assert, reggroup_el::group, reggroups::last, reggroup_el::next, and reggroups_data.

Referenced by regcache::dump(), reg_or_group_completer_1(), reggroup_find(), reggroups_dump(), registers_info(), tui_reg_command(), and tui_reg_next().

## ◆ reggroup_prev()

struct reggroup* reggroup_prev | ( | struct gdbarch * | gdbarch,
|  | struct reggroup * | curr
| ) |  |

Definition at line 164 of file reggroups.c.

References default_groups, reggroups::first, gdb_assert, reggroup_el::group, reggroup_el::next, and reggroups_data.

Referenced by tui_reg_prev().

## ◆ reggroup_type()

enum reggroup_type reggroup_type | ( | struct reggroup * | group | ) |

Definition at line 72 of file reggroups.c.

References reggroup::type.

## ◆ reggroups_dump()

static void reggroups_dump | ( | struct gdbarch * | gdbarch,
|  | struct ui_file * | file
| ) |  |
| static

Definition at line 238 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().

## ◆ reggroups_init()

static void* reggroups_init | ( | struct obstack * | obstack | ) |
| static

Definition at line 94 of file reggroups.c.

References reggroups::first, reggroups::last, and OBSTACK_ZALLOC.

Referenced by _initialize_reggroup().

## Variable Documentation

## ◆ all_group

struct reggroup all_group = { "all", USER_REGGROUP }
| static

Definition at line 310 of file reggroups.c.

## ◆ all_reggroup

struct reggroup* const all_reggroup = &all_group

Definition at line 318 of file reggroups.c.

Referenced by _initialize_reggroup(), aarch64_pseudo_register_reggroup_p(), alpha_register_reggroup_p(), arm_register_reggroup_p(), default_print_registers_info(), default_register_reggroup_p(), i386_add_reggroups(), i386_register_reggroup_p(), ia64_register_reggroup_p(), info_frame_command(), 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(), nds32_add_reggroups(), nds32_register_reggroup_p(), or1k_gdbarch_init(), rl78_register_reggroup_p(), rs6000_pseudo_register_reggroup_p(), sh_frame_cache(), xtensa_add_reggroups(), and xtensa_register_reggroup_p().

## ◆ default_groups

struct reggroups default_groups = { NULL, &default_groups.first }
| static

Definition at line 128 of file reggroups.c.

Referenced by _initialize_reggroup(), reggroup_next(), and reggroup_prev().

## ◆ float_group

struct reggroup float_group = { "float", USER_REGGROUP }
| static

Definition at line 307 of file reggroups.c.

## ◆ float_reggroup

struct reggroup* const float_reggroup = &float_group

Definition at line 315 of file reggroups.c.

Referenced by _initialize_reggroup(), aarch64_pseudo_register_reggroup_p(), alpha_register_reggroup_p(), arm_register_reggroup_p(), default_print_float_info(), 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(), nds32_add_reggroups(), nds32_register_reggroup_p(), or1k_gdbarch_init(), rs6000_pseudo_register_reggroup_p(), sh_register_reggroup_p(), spu_register_reggroup_p(), xtensa_add_reggroups(), and xtensa_register_reggroup_p().

## ◆ general_group

struct reggroup general_group = { "general", USER_REGGROUP }
| static

Definition at line 306 of file reggroups.c.

## ◆ general_reggroup

struct reggroup* const general_reggroup = &general_group

Definition at line 314 of file reggroups.c.

Referenced by _initialize_reggroup(), 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(), nds32_add_reggroups(), nds32_register_reggroup_p(), or1k_gdbarch_init(), rl78_register_reggroup_p(), s390_pseudo_register_reggroup_p(), sh_register_reggroup_p(), spu_register_reggroup_p(), tui_show_registers(), xtensa_add_reggroups(), and xtensa_register_reggroup_p().

## ◆ reggroups_data

struct gdbarch_data* reggroups_data
| static

Definition at line 91 of file reggroups.c.

Referenced by _initialize_reggroup(), reggroup_add(), reggroup_next(), and reggroup_prev().

## ◆ restore_group

struct reggroup restore_group = { "restore", INTERNAL_REGGROUP }
| static

Definition at line 312 of file reggroups.c.

## ◆ restore_reggroup

struct reggroup* const restore_reggroup = &restore_group

Definition at line 320 of file reggroups.c.

Referenced by _initialize_reggroup(), 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(), nds32_add_reggroups(), nds32_register_reggroup_p(), or1k_gdbarch_init(), 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().

## ◆ save_group

struct reggroup save_group = { "save", INTERNAL_REGGROUP }
| static

Definition at line 311 of file reggroups.c.

## ◆ save_reggroup

struct reggroup* const save_reggroup = &save_group

Definition at line 319 of file reggroups.c.

Referenced by _initialize_reggroup(), 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(), nds32_add_reggroups(), nds32_register_reggroup_p(), or1k_gdbarch_init(), rl78_register_reggroup_p(), s390_pseudo_register_reggroup_p(), regcache::save(), spu_register_reggroup_p(), tdesc_register_in_reggroup_p(), xtensa_add_reggroups(), and xtensa_register_reggroup_p().

## ◆ system_group

struct reggroup system_group = { "system", USER_REGGROUP }
| static

Definition at line 308 of file reggroups.c.

## ◆ system_reggroup

struct reggroup* const system_reggroup = &system_group

Definition at line 316 of file reggroups.c.

Referenced by _initialize_reggroup(), 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(), nds32_add_reggroups(), nds32_register_reggroup_p(), or1k_gdbarch_init(), rl78_register_reggroup_p(), sh_register_reggroup_p(), xtensa_add_reggroups(), and xtensa_register_reggroup_p().

## ◆ vector_group

struct reggroup vector_group = { "vector", USER_REGGROUP }
| static

Definition at line 309 of file reggroups.c.

## ◆ vector_reggroup

struct reggroup* const vector_reggroup = &vector_group

Definition at line 317 of file reggroups.c.

Referenced by _initialize_reggroup(), 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(), or1k_gdbarch_init(), print_vector_info(), rs6000_pseudo_register_reggroup_p(), s390_pseudo_register_reggroup_p(), sh_register_reggroup_p(), xtensa_add_reggroups(), and xtensa_register_reggroup_p().