diff options
author | Andrew Cagney <cagney@redhat.com> | 2002-12-13 23:18:56 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 2002-12-13 23:18:56 +0000 |
commit | 6baff1d2e51f12744175867f6355b17d0b61ab05 (patch) | |
tree | 673c86fddb65a41414dc5492e788af79c6e409f4 /gdb/frame.c | |
parent | eaab8960932cde9aac5092024fdb7494cb1fae46 (diff) | |
download | gdb-6baff1d2e51f12744175867f6355b17d0b61ab05.zip gdb-6baff1d2e51f12744175867f6355b17d0b61ab05.tar.gz gdb-6baff1d2e51f12744175867f6355b17d0b61ab05.tar.bz2 |
2002-12-13 Andrew Cagney <ac131313@redhat.com>
* frame.h (get_frame_saved_regs): Declare.
(frame_saved_regs_zalloc): Change return type to CORE_ADDR
pointer.
* frame.c (get_frame_saved_regs): New function.
(frame_saved_regs_zalloc): Return the allocated saved_regs.
Diffstat (limited to 'gdb/frame.c')
-rw-r--r-- | gdb/frame.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/gdb/frame.c b/gdb/frame.c index 44e0811..17ee832 100644 --- a/gdb/frame.c +++ b/gdb/frame.c @@ -461,14 +461,20 @@ frame_obstack_alloc (unsigned long size) return obstack_alloc (&frame_cache_obstack, size); } -void +CORE_ADDR * frame_saved_regs_zalloc (struct frame_info *fi) { fi->saved_regs = (CORE_ADDR *) frame_obstack_alloc (SIZEOF_FRAME_SAVED_REGS); memset (fi->saved_regs, 0, SIZEOF_FRAME_SAVED_REGS); + return fi->saved_regs; } +CORE_ADDR * +get_frame_saved_regs (struct frame_info *fi) +{ + return fi->saved_regs; +} /* Return the innermost (currently executing) stack frame. */ |