This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Strange code in dwarf2cfi.c:cfi_pop_frame()
- From: Mark Kettenis <kettenis at chello dot nl>
- To: gdb at sources dot redhat dot com, mludvig at suse dot cz
- Date: Wed, 3 Jul 2002 23:36:55 +0200 (CEST)
- Subject: Strange code in dwarf2cfi.c:cfi_pop_frame()
The following bit of code surprises me a bit:
/* Restore the machine to the state it had before the current frame
was created. */
void
cfi_pop_frame (struct frame_info *fi)
{
char regbuf[MAX_REGISTER_RAW_SIZE];
int regnum;
fi = get_current_frame ();
...
}
Why does it override FI with the current frame?
Mark