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
On 02/13/2013 08:56 PM, Tom Tromey wrote:
>>>>>> "Pedro" == Pedro Alves <palves@redhat.com> writes:
>
> Pedro> This patch fixes it. The issue is that we're entering the VALUE_LVAL
> Pedro> (x) == lval_memory branch by mistake for references. The fix is just
> Pedro> to swap the tests so references are checked first, like value_addr
> Pedro> also handles references first.
>
> Pedro> Comments?
>
> It looks reasonable to me.
Thanks. Checked in (v2).
--
Pedro Alves