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] [RFC] Fix ptype bug actually exercised in userdef.exp


On 02/13/2013 08:31 PM, Pedro Alves wrote:
> +	  if (TYPE_CODE (type) == TYPE_CODE_REF)
> +	    return value_zero (lookup_pointer_type (TYPE_TARGET_TYPE (type)), not_lval);
> +	  else if (VALUE_LVAL (x) == lval_memory || value_must_coerce_to_target (x))
> +	    return value_zero (lookup_pointer_type (value_type (x)), not_lval);
>  	  else

Whoops, too long lines.  Pretend there's a newline before each of those
"not_lval", like in the present code...

-- 
Pedro Alves


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