This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: [patch/rfc] Add get_frame_saved_regs() and get_frame_saved_regs_p()
- From: Andrew Cagney <ac131313 at redhat dot com>
- To: Andrew Cagney <ac131313 at redhat dot com>
- Cc: gdb-patches at sources dot redhat dot com
- Date: Wed, 11 Dec 2002 16:24:37 -0500
- Subject: Re: [patch/rfc] Add get_frame_saved_regs() and get_frame_saved_regs_p()
- References: <3DF7A7C9.9040306@redhat.com>
+CORE_ADDR *
+get_frame_saved_regs (struct frame_info *fi)
+{
+ if (fi->saved_regs != NULL)
Oops! Try:
if (fi->saved_regs == NULL)
The scary thing is that, on i386, it only triggered 7 failures :-?
+ {
+ fi->saved_regs = frame_obstack_alloc (SIZEOF_FRAME_SAVED_REGS);
+ memset (fi->saved_regs, 0, SIZEOF_FRAME_SAVED_REGS);
+ }
+ return fi->saved_regs;
+}
Andrew