X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=gdb%2Freggroups.h;h=fd9426377e91bffb05f6f065a16e2dba6d0673d1;hb=refs%2Fheads%2Fconcurrent-displaced-stepping-2020-04-01;hp=ed90ff703c43b49886fd0f8fbbbbe8aef98ccb40;hpb=618f726fcb851883a0094aa7fa17003889b7189f;p=deliverable%2Fbinutils-gdb.git diff --git a/gdb/reggroups.h b/gdb/reggroups.h index ed90ff703c..fd9426377e 100644 --- a/gdb/reggroups.h +++ b/gdb/reggroups.h @@ -1,6 +1,6 @@ /* Register groupings for GDB, the GNU debugger. - Copyright (C) 2002-2016 Free Software Foundation, Inc. + Copyright (C) 2002-2020 Free Software Foundation, Inc. Contributed by Red Hat. @@ -41,6 +41,10 @@ extern struct reggroup *const restore_reggroup; /* Create a new local register group. */ extern struct reggroup *reggroup_new (const char *name, enum reggroup_type type); +/* Create a new register group allocated onto the gdbarch obstack. */ +extern struct reggroup *reggroup_gdbarch_new (struct gdbarch *gdbarch, + const char *name, + enum reggroup_type type); /* Add a register group (with attribute values) to the pre-defined list. */ extern void reggroup_add (struct gdbarch *gdbarch, struct reggroup *group); @@ -57,6 +61,8 @@ extern struct reggroup *reggroup_next (struct gdbarch *gdbarch, struct reggroup *last); extern struct reggroup *reggroup_prev (struct gdbarch *gdbarch, struct reggroup *curr); +/* Find a reggroup by name. */ +extern reggroup *reggroup_find (struct gdbarch *gdbarch, const char *name); /* Is REGNUM a member of REGGROUP? */ extern int default_register_reggroup_p (struct gdbarch *gdbarch, int regnum,