Re: [PATCH] [RFC] Fix ptype bug actually exercised in userdef.exp

Tom Tromey
2013-02-13T20:57:04Z

>>>>> "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.

Tom