aboutsummaryrefslogtreecommitdiff
path: root/gdb/reggroups.h
diff options
context:
space:
mode:
authorAndrew Burgess <andrew.burgess@embecosm.com>2015-05-21 21:51:53 +0200
committerAndrew Burgess <andrew.burgess@embecosm.com>2015-05-26 22:18:50 +0100
commit55b400279267cad460ca62a8211f0b414f564e93 (patch)
tree9a86945461e96428aae5ac7b9a6266d632c8e614 /gdb/reggroups.h
parent7e16ef34742d853239608fadde4a19f3a105b0a2 (diff)
downloadgdb-55b400279267cad460ca62a8211f0b414f564e93.zip
gdb-55b400279267cad460ca62a8211f0b414f564e93.tar.gz
gdb-55b400279267cad460ca62a8211f0b414f564e93.tar.bz2
gdb: Add 'tui reg prev' command.
There is already a 'tui reg next' command, this adds a symmetric 'tui reg prev' command. gdb/ChangeLog: * tui/tui-regs.c (tui_reg_prev_command): New function. (_initialize_tui_regs): Add 'prev' command for 'tui reg'. * reggroups.c (reggroup_prev): New function. * reggroups.h (reggroup_prev): Add declaration. Update comment. gdb/doc/ChangeLog: * gdb.texinfo (TUI Commands): Add 'tui reg prev' details.
Diffstat (limited to 'gdb/reggroups.h')
-rw-r--r--gdb/reggroups.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/gdb/reggroups.h b/gdb/reggroups.h
index 2ad74bc..425a25c 100644
--- a/gdb/reggroups.h
+++ b/gdb/reggroups.h
@@ -49,11 +49,14 @@ 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);
-/* 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. */
+/* Iterators for the architecture's register groups. Pass in NULL, returns
+ the first (for next), or last (for prev) group. Pass in a group,
+ returns the next or previous group, or NULL when either the end or the
+ beginning of the group list is reached. */
extern struct reggroup *reggroup_next (struct gdbarch *gdbarch,
struct reggroup *last);
+extern struct reggroup *reggroup_prev (struct gdbarch *gdbarch,
+ struct reggroup *curr);
/* Is REGNUM a member of REGGROUP? */
extern int default_register_reggroup_p (struct gdbarch *gdbarch, int regnum,