X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=gdb%2Freggroups.h;h=c56d38b85e6c51dd86abee8631785914166fa4f3;hb=2117c711ae07700adb57ea5b5ca61e4c32d7e3d2;hp=0088a8520e3266f9effcb06147289e90d43e5d14;hpb=b59ff9d5ff023638dba11477c822313178d14e4d;p=deliverable%2Fbinutils-gdb.git diff --git a/gdb/reggroups.h b/gdb/reggroups.h index 0088a8520e..c56d38b85e 100644 --- a/gdb/reggroups.h +++ b/gdb/reggroups.h @@ -1,6 +1,6 @@ /* Register groupings for GDB, the GNU debugger. - Copyright 2002 Free Software Foundation, Inc. + Copyright (C) 2002-2014 Free Software Foundation, Inc. Contributed by Red Hat. @@ -8,7 +8,7 @@ This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by - the Free Software Foundation; either version 2 of the License, or + the Free Software Foundation; either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, @@ -17,9 +17,7 @@ GNU General Public License for more details. You should have received a copy of the GNU General Public License - along with this program; if not, write to the Free Software - Foundation, Inc., 59 Temple Place - Suite 330, - Boston, MA 02111-1307, USA. */ + along with this program. If not, see . */ #ifndef REGGROUPS_H #define REGGROUPS_H @@ -51,8 +49,11 @@ extern void reggroup_add (struct gdbarch *gdbarch, struct reggroup *group); extern const char *reggroup_name (struct reggroup *reggroup); extern enum reggroup_type reggroup_type (struct reggroup *reggroup); -/* The register groups for the current architecture. */ -extern struct reggroup *const *reggroups (struct gdbarch *gdbarch); +/* Interator for the architecture's register groups. Pass in NULL, + returns the first group. Pass in a group, returns the next group, + or NULL when the last group is reached. */ +extern struct reggroup *reggroup_next (struct gdbarch *gdbarch, + struct reggroup *last); /* Is REGNUM a member of REGGROUP? */ extern int default_register_reggroup_p (struct gdbarch *gdbarch, int regnum,