1 Sep 2004 01:44
Re: [RFA/RFC] fix problems with unwinder on mips-irix
Joel Brobecker <brobecker <at> gnat.com>
2004-08-31 23:44:30 GMT
2004-08-31 23:44:30 GMT
Andrew,
> Yes, sometimes inlineing doesn't help, here it does. There's really no
> value in trying to preserve this code so be brutal.
Thanks a lot for the detailed message. Really appreciated. I'm trying to
find my way through all this. Let's first look at inlining find_proc_desc.
I'll work on the rest as soon as I have this one figured out.
Reading your last commit to this file, I discovered that you added frame
sniffers, so, if I understand correctly, we can now more or less predict
the circumstances under which find_proc_desc should be called (heuristic
vs non-heuristic). Is that right?
find_proc_desc is called by 4 routines:
1. mips_mdebug_frame_cache
/* Get the mdebug proc descriptor. */
proc_desc = find_proc_desc (frame_pc_unwind (next_frame), next_frame, 1);
In that case, I think this call can be replaced by a call to
non_heuristic_proc_desc? How about the handling this case:
/* IF this is the topmost frame AND
* (this proc does not have debugging information OR
* the PC is in the procedure prologue)
* THEN create a "heuristic" proc_desc (by analyzing
* the actual code) to replace the "official" proc_desc.
*/
(Continue reading)
RSS Feed