summaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorDaniel Jacobowitz <dan@debian.org>2003-09-25 16:12:32 +0000
committerDaniel Jacobowitz <dan@debian.org>2003-09-25 16:12:32 +0000
commit2043692956965c128cbc2950bc9f9c6a454ce706 (patch)
tree1045e93aad7a0721d6065fe3fe29d80c1bbfc89e /gdb
parent842e64b0a07f2290461c8346294479af71f96de9 (diff)
downloadgdb-2043692956965c128cbc2950bc9f9c6a454ce706.tar.gz
* stack.c: Include "reggroups.h".
(frame_info): Only display registers in all_reggroup. * Makefile.in (stack.o): Update dependencies.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/ChangeLog6
-rw-r--r--gdb/Makefile.in2
-rw-r--r--gdb/stack.c4
3 files changed, 10 insertions, 2 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 216635b1f1d..446914ed0e1 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -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
diff --git a/gdb/Makefile.in b/gdb/Makefile.in
index 3146aeda7d4..aea9f3ccf9a 100644
--- a/gdb/Makefile.in
+++ b/gdb/Makefile.in
@@ -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) \
diff --git a/gdb/stack.c b/gdb/stack.c
index 72d7f22cc06..a82f9f3fd12 100644
--- a/gdb/stack.c
+++ b/gdb/stack.c
@@ -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. */