diff options
author | Andrew Cagney <cagney@redhat.com> | 2002-12-09 01:40:25 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 2002-12-09 01:40:25 +0000 |
commit | 8b36eed86d2784688816eb8bf25bf50b188e2c23 (patch) | |
tree | 420fe9c2a3b4086dcadf43cc960542b4bc2491d1 /gdb/std-regs.c | |
parent | aeeccc89cabdc8a3f88dd4b7192af4cd78ec7571 (diff) | |
download | binutils-8b36eed86d2784688816eb8bf25bf50b188e2c23.zip binutils-8b36eed86d2784688816eb8bf25bf50b188e2c23.tar.gz binutils-8b36eed86d2784688816eb8bf25bf50b188e2c23.tar.bz2 |
2002-12-08 Andrew Cagney <ac131313@redhat.com>
* blockframe.c: Use get_frame_base instead of directly accessing
the `struct frame_info' member frame.
* f-valprint.c, std-regs.c, rs6000-tdep.c: Ditto.
* stack.c, dummy-frame.c, breakpoint.c: Ditto.
Diffstat (limited to 'gdb/std-regs.c')
-rw-r--r-- | gdb/std-regs.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/gdb/std-regs.c b/gdb/std-regs.c index 8177fc2..ef22681 100644 --- a/gdb/std-regs.c +++ b/gdb/std-regs.c @@ -64,7 +64,8 @@ value_of_builtin_frame_reg (struct frame_info *frame) memset (buf, TYPE_LENGTH (VALUE_TYPE (val)), 0); /* frame.base. */ if (frame != NULL) - ADDRESS_TO_POINTER (builtin_type_void_data_ptr, buf, frame->frame); + ADDRESS_TO_POINTER (builtin_type_void_data_ptr, buf, + get_frame_base (frame)); buf += TYPE_LENGTH (builtin_type_void_data_ptr); /* frame.XXX. */ return val; @@ -83,7 +84,8 @@ value_of_builtin_frame_fp_reg (struct frame_info *frame) if (frame == NULL) memset (buf, TYPE_LENGTH (VALUE_TYPE (val)), 0); else - ADDRESS_TO_POINTER (builtin_type_void_data_ptr, buf, frame->frame); + ADDRESS_TO_POINTER (builtin_type_void_data_ptr, buf, + get_frame_base (frame)); return val; } } |