Re: [PATCH] Consistent display of ""

Pedro Alves
2013-08-16T20:28:45Z

On 08/16/2013 07:41 PM, Pedro Alves wrote:

> +/* Allocate a "not saved" value for type TYPE. */
> +
> +struct value *
> +allocate_not_saved_value (struct type *type,
> + struct frame_info *frame, int regnum)
> +{
> + struct value *retval = allocate_value (type);
> +
> + set_value_optimized_out (retval, 1);
> + VALUE_LVAL (retval) = lval_register;
> + VALUE_FRAME_ID (retval) = get_frame_id (frame);

I noticed that this should be the previous frame's id, not FRAME's.
I've fixed it in the branch, and did some additional cleaning up.

--
Pedro Alves