This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [patch rfc] Add the frame's type to the unwinder


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



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]