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] Eliminate frame->pc


(I could almost cut/paste my last post about frame->frame)

This eliminates the redundant frame->pc. Instead the PC's value is only stored in frame->next->prev_pc.value.

Any remaining references to frame->pc remaining can, obviously, be replaced with either:

deprecated_update_frame_pc_hack()
get_frame_pc()

I've (hopefully) fixed all the ones that gdb_mbuild.sh turned up.

I'll commit in a few days,

I've checked this in o o o o o o o o o o o o o o o o



2003-04-05 Andrew Cagney <cagney at redhat dot com>

	* frame.c (frame_pc_unwind): Update.
	(create_sentinel_frame): Do not set "pc".
	(get_prev_frame): Do not set "pc".  Use frame_pc_unwind.
	(get_frame_pc): Call frame_pc_unwind.
	(deprecated_update_frame_pc_hack): Update.
	(create_new_frame): Use "pc" not "->pc".
	* frame.h (struct frame_info): Delete field "pc".  Replace
	"pc_unwind_cache" and "pc_unwind_cache_p" with "prev_pc"
	structure.



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