]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
* stack.c: Include "reggroups.h".
authorDaniel Jacobowitz <drow@false.org>
Thu, 25 Sep 2003 16:12:32 +0000 (16:12 +0000)
committerDaniel Jacobowitz <drow@false.org>
Thu, 25 Sep 2003 16:12:32 +0000 (16:12 +0000)
(frame_info): Only display registers in all_reggroup.
* Makefile.in (stack.o): Update dependencies.

gdb/ChangeLog
gdb/Makefile.in
gdb/stack.c

index 216635b1f1dba24e5316458ba10541c236316632..446914ed0e1f75ce4e591165c3c94b5ac730ff1d 100644 (file)
@@ -1,3 +1,9 @@
+2003-09-25  Daniel Jacobowitz  <drow@mvista.com>
+
+       * stack.c: Include "reggroups.h".
+       (frame_info): Only display registers in all_reggroup.
+       * Makefile.in (stack.o): Update dependencies.
+
 2003-09-25  Jerome Guitton  <guitton@act-europe.fr>
 
        * arm-tdep.c (arm_skip_prologue): Handle "sub ip, sp #n" and
index 3146aeda7d426b73a55aa51ddd01d81af688a215..aea9f3ccf9a9b50db2d43e21395c65037cee457d 100644 (file)
@@ -2342,7 +2342,7 @@ stack.o: stack.c $(defs_h) $(gdb_string_h) $(value_h) $(symtab_h) \
        $(gdbtypes_h) $(expression_h) $(language_h) $(frame_h) $(gdbcmd_h) \
        $(gdbcore_h) $(target_h) $(source_h) $(breakpoint_h) $(demangle_h) \
        $(inferior_h) $(annotate_h) $(ui_out_h) $(block_h) $(stack_h) \
-       $(gdb_assert_h) $(dictionary_h)
+       $(gdb_assert_h) $(dictionary_h) $(reggroups_h)
 standalone.o: standalone.c $(gdb_stat_h) $(defs_h) $(symtab_h) $(frame_h) \
        $(inferior_h) $(gdb_wait_h)
 std-regs.o: std-regs.c $(defs_h) $(user_regs_h) $(frame_h) $(gdbtypes_h) \
index 72d7f22cc0627a6b9ae1c8522482d61139c5dba7..a82f9f3fd12cc54263fc54bb87571ea60ad3434f 100644 (file)
@@ -43,6 +43,7 @@
 #include "stack.h"
 #include "gdb_assert.h"
 #include "dictionary.h"
+#include "reggroups.h"
 
 /* Prototypes for exported functions. */
 
@@ -1079,7 +1080,8 @@ frame_info (char *addr_exp, int from_tty)
     count = 0;
     numregs = NUM_REGS + NUM_PSEUDO_REGS;
     for (i = 0; i < numregs; i++)
-      if (i != SP_REGNUM)
+      if (i != SP_REGNUM
+         && gdbarch_register_reggroup_p (current_gdbarch, i, all_reggroup))
        {
          /* Find out the location of the saved register without
              fetching the corresponding value.  */