2011-12-09 Andrew Pinski <apinski@cavium.com>
authorAndrew Pinski <apinski@cavium.com>
Fri, 9 Dec 2011 19:22:31 +0000 (19:22 +0000)
committerAndrew Pinski <apinski@cavium.com>
Fri, 9 Dec 2011 19:22:31 +0000 (19:22 +0000)
* linespec.c (hash_address_entry): Use iterative_hash_object on each
field rather than the struct itself.

gdb/ChangeLog
gdb/linespec.c

index 9b7503bd05c4fc009d5d0a28603a62b0b002dc8d..65056995de1f573f4c1d4f52c5cd8583f9e34e41 100644 (file)
@@ -1,3 +1,8 @@
+2011-12-09  Andrew Pinski  <apinski@cavium.com>
+
+       * linespec.c (hash_address_entry): Use iterative_hash_object on each
+       field rather than the struct itself.
+
 2011-12-09  Tom Tromey  <tromey@redhat.com>
 
        * breakpoint.c (compare_breakpoints): New function.
index f3afc58e0e3139b895c30ec78bff54417aa20795..0ac54f72e4fa4a8ecda84a0e159a1be4c27ee6df 100644 (file)
@@ -253,8 +253,10 @@ static hashval_t
 hash_address_entry (const void *p)
 {
   const struct address_entry *aep = p;
+  hashval_t hash;
 
-  return iterative_hash_object (*aep, 0);
+  hash = iterative_hash_object (aep->pspace, 0);
+  return iterative_hash_object (aep->addr, hash);
 }
 
 /* An equality function for address_entry.  */
This page took 0.035603 seconds and 4 git commands to generate.