This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH] [RFC] Fix ptype bug actually exercised in userdef.exp
- From: Pedro Alves <palves at redhat dot com>
- To: Pedro Alves <palves at redhat dot com>
- Cc: gdb-patches at sourceware dot org
- Date: Wed, 13 Feb 2013 20:35:51 +0000
- Subject: Re: [PATCH] [RFC] Fix ptype bug actually exercised in userdef.exp
- References: <20130213203131.30816.4686.stgit@brno.lan>
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