frame_register_unwind(): "frame != NULL" assertion failure

Kevin Buettner kevinb@redhat.com
Mon Feb 17 23:21:00 GMT 2003


On Feb 17,  4:37pm, Andrew Cagney wrote:

>    /* Use proc_desc calculated in frame_chain */
>    proc_desc =
>      get_next_frame (fci)
>      ? cached_proc_desc
>      : find_proc_desc (get_frame_pc (fci), get_next_frame (fci), 1);
> 
> can you please change the above to be:
> 
>      : find_proc_desc (get_frame_pc (fci), NULL, 1);
> 
> (with a comment) and modify read_next_frame_reg() to, when NULL, pull a 
> value from the register cache.

I will do this, but I really do not think it's the best solution.  (If
we're going to be checking for frame == NULL, then why did you introduce
sentinel frames in the first place?)

Kevin



More information about the Gdb mailing list