This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [python][patch] Return hash value for gdb.Value.
- From: Tom Tromey <tromey at redhat dot com>
- To: Phil Muldoon <pmuldoon at redhat dot com>
- Cc: gdb-patches ml <gdb-patches at sourceware dot org>
- Date: Thu, 13 May 2010 11:09:32 -0600
- Subject: Re: [python][patch] Return hash value for gdb.Value.
- References: <4BEC3039.2060400@redhat.com>
- Reply-to: tromey at redhat dot com
>>>>> "Phil" == Phil Muldoon <pmuldoon@redhat.com> writes:
Phil> This patch implements the hash function for gdb.Value. It purely
Phil> replicates the function of id() in that it returns the object
Phil> address as the hash value. This allows gdb.Values to be hashable.
Thanks for doing this.
Phil> 2010-05-13 Phil Muldoon <pmuldoon@redhat.com>
Phil> * gdb.python/py-value.exp (test_value_hash): New function.
Mention the PR number here too.
Phil> +long valpy_hash (PyObject *self)
Should be 'static'.
Newline after 'long'.
Ok with those changes.
Tom