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


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


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