This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: [patch rfc] Add the frame's type to the unwinder
- 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, 02 Apr 2003 16:53:49 -0500
- Subject: Re: [patch rfc] Add the frame's type to the unwinder
- References: <3E8B5905.1000704@redhat.com>
While the above is true for new code, old code continues to use the same confused combination of frame_type_from_pc(), frame_unwind_find_by_pc(), deprecated_set_frame_type(), and legacy_get_prev_frame(). A legacy frame's type is initialized to UNKNOWN_FRAME, and then zero or more of those functions will override it. get_frame_type() mapping an UNKNOWN_FRAME onto a NORMAL_FRAME.
My apologies to:
DEPRECATED_INIT_EXTRA_FRAME_INFO
DEPRECATED_INIT_FRAME_PC
DEPRECATED_INIT_FRAME_PC_FIRST
DEPRECATED_FRAME_INIT_SAVED_REGS
which also manage to modify the type and should have been mentioned.
Anyway, the new frame code does not have this problem.
Andrew