aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Schwab <schwab@linux-m68k.org>2008-09-24 12:17:20 +0000
committerAndreas Schwab <schwab@linux-m68k.org>2008-09-24 12:17:20 +0000
commit45ef8ce0c5323bee1881972b0b3250e7666df102 (patch)
treede93b4b22c60a5618739196002e09e992c1b51a8
parent9f5110a6ab7ba4461f9e0a0c5f3e2df9c767e68b (diff)
downloadgdb-45ef8ce0c5323bee1881972b0b3250e7666df102.zip
gdb-45ef8ce0c5323bee1881972b0b3250e7666df102.tar.gz
gdb-45ef8ce0c5323bee1881972b0b3250e7666df102.tar.bz2
* frame.c (get_frame_register_bytes): Take pseudo registers into
account.
-rw-r--r--gdb/ChangeLog5
-rw-r--r--gdb/frame.c3
2 files changed, 7 insertions, 1 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 31387a9..155c483 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,8 @@
+2008-09-24 Andreas Schwab <schwab@suse.de>
+
+ * frame.c (get_frame_register_bytes): Take pseudo registers into
+ account.
+
2008-09-23 Doug Evans <dje@google.com>
* dcache.c (state_chars): New static global.
diff --git a/gdb/frame.c b/gdb/frame.c
index dd3e341..0fd21e4 100644
--- a/gdb/frame.c
+++ b/gdb/frame.c
@@ -809,7 +809,8 @@ get_frame_register_bytes (struct frame_info *frame, int regnum,
/* Ensure that we will not read beyond the end of the register file.
This can only ever happen if the debug information is bad. */
maxsize = -offset;
- for (i = regnum; i < gdbarch_num_regs (gdbarch); i++)
+ for (i = regnum;
+ i < gdbarch_num_regs (gdbarch) + gdbarch_num_pseudo_regs (gdbarch); i++)
{
int thissize = register_size (gdbarch, i);
if (thissize == 0)