This is the mail archive of the gdb-patches@sourceware.org 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] Consistent display of "<optimized out>"


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


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