aboutsummaryrefslogtreecommitdiff
path: root/gdb/stack.c
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2001-03-21 16:42:39 +0000
committerAndrew Cagney <cagney@redhat.com>2001-03-21 16:42:39 +0000
commit64485362e8de1cf93e55c3498e2af97cbf520f4b (patch)
tree3c34c2e96a51e2761b25aeccddd0b7c374c6f32e /gdb/stack.c
parent9742079a314711c13d269e9e583b7b82dc42f1a6 (diff)
downloadgdb-64485362e8de1cf93e55c3498e2af97cbf520f4b.zip
gdb-64485362e8de1cf93e55c3498e2af97cbf520f4b.tar.gz
gdb-64485362e8de1cf93e55c3498e2af97cbf520f4b.tar.bz2
* frame.h (SIZEOF_FRAME_SAVED_REGS): Report an error if macro
already defined. From 2000-08-25 Stephane Carrez <Stephane.Carrez@worldnet.fr>: * stabsread.c (define_symbol): A parameter ('R'), a local ('r'), or a reference ('a') can be in a pseudo register. * infcmd.c (do_registers_info): Must take into account the pseudo registers to print their value. (registers_info): Likewise. * stack.c (frame_info): Likewise. * frame.h (SIZEOF_FRAME_SAVED_REGS): Save the pseudo registers.
Diffstat (limited to 'gdb/stack.c')
-rw-r--r--gdb/stack.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/stack.c b/gdb/stack.c
index ebeb4d6..6154443 100644
--- a/gdb/stack.c
+++ b/gdb/stack.c
@@ -1001,7 +1001,7 @@ frame_info (char *addr_exp, int from_tty)
print_address_numeric (fi->saved_regs[SP_REGNUM], 1, gdb_stdout);
printf_filtered ("\n");
count = 0;
- numregs = NUM_REGS;
+ numregs = NUM_REGS + NUM_PSEUDO_REGS;
for (i = 0; i < numregs; i++)
if (fi->saved_regs[i] && i != SP_REGNUM)
{