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] Lazy frame ID evaluation


I've checked this in.

Ref: Lazy get_frame_id()
http://sources.redhat.com/ml/gdb/2003-03/msg00243.html

The attached delays the computation of the frame ID until when it is needed. Doing this (at least for targets using new frames) reduces the overhead of creating the initial frame - it avoids the need to do any prologue analysis until it is actually needed.

The follow on change is to exploit this in infrun.c, by using get_frame_type (get_current_frame ()) instead of PC_IN_SIGTRAMP() and PC_IN_DUMMY_FRAME(). They'll follow as separate changes.

I won't think about following this one up until after the dummy code cleanup has settled.


Andrew



2003-03-26 Andrew Cagney <cagney at redhat dot com>

	* frame.c (get_frame_base): Force ID initialization.
	(get_prev_frame): Move computation of the frame ID from here ...
	(get_frame_id): ... to here.
	(legacy_get_prev_frame): Mark the frame ID as valid.
	* frame.h (struct frame_info): Add field "id_p".




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