aboutsummaryrefslogtreecommitdiff
path: root/gdb/stack.c
diff options
context:
space:
mode:
authorDaniel Jacobowitz <drow@false.org>2003-09-25 16:12:32 +0000
committerDaniel Jacobowitz <drow@false.org>2003-09-25 16:12:32 +0000
commit898c62f580fabcdd8d8585104d1f91399170df3c (patch)
treec69792e6060439e0534c2fbaa1c07d10ba62a593 /gdb/stack.c
parent10f0d45173be4e7b88962735565bf97b25affc10 (diff)
downloadgdb-898c62f580fabcdd8d8585104d1f91399170df3c.zip
gdb-898c62f580fabcdd8d8585104d1f91399170df3c.tar.gz
gdb-898c62f580fabcdd8d8585104d1f91399170df3c.tar.bz2
* stack.c: Include "reggroups.h".
(frame_info): Only display registers in all_reggroup. * Makefile.in (stack.o): Update dependencies.
Diffstat (limited to 'gdb/stack.c')
-rw-r--r--gdb/stack.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/gdb/stack.c b/gdb/stack.c
index 72d7f22..a82f9f3 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. */