From 45ef8ce0c5323bee1881972b0b3250e7666df102 Mon Sep 17 00:00:00 2001 From: Andreas Schwab Date: Wed, 24 Sep 2008 12:17:20 +0000 Subject: * frame.c (get_frame_register_bytes): Take pseudo registers into account. --- gdb/frame.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'gdb/frame.c') diff --git a/gdb/frame.c b/gdb/frame.c index dd3e34118e6..0fd21e4eabe 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) -- cgit v1.2.1