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: Tom Tromey <tromey at redhat dot com>
- To: Pedro Alves <palves at redhat dot com>
- Cc: gdb-patches at sourceware dot org
- Date: Wed, 13 Feb 2013 13:56:52 -0700
- Subject: Re: [PATCH] [RFC] Fix ptype bug actually exercised in userdef.exp
- References: <20130213203131.30816.4686.stgit@brno.lan>
>>>>> "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