]> git.sur5r.net Git - openocd/commitdiff
have "reg" command print cache names too
authorDavid Brownell <dbrownell@users.sourceforge.net>
Thu, 22 Oct 2009 19:05:04 +0000 (12:05 -0700)
committerDavid Brownell <dbrownell@users.sourceforge.net>
Thu, 22 Oct 2009 19:05:04 +0000 (12:05 -0700)
When dumping over 100 registers (as on most ARM9 + ETM cores),
aid readability by splitting them into logical groups.

Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
src/target/target.c

index 45162070183de1b659bbf3a7160c361e0a21f3a5..eb93fb7b83dc24756d6bf7ca6b10e552dd98ed32 100644 (file)
@@ -1823,6 +1823,8 @@ static int handle_reg_command(struct command_context_s *cmd_ctx, char *cmd, char
                {
                        int i;
 
+                       command_print(cmd_ctx, "===== %s", cache->name);
+
                        for (i = 0, reg = cache->reg_list;
                                        i < cache->num_regs;
                                        i++, reg++, count++)