From: Andrew Pinski Date: Fri, 9 Dec 2011 19:22:31 +0000 (+0000) Subject: 2011-12-09 Andrew Pinski X-Git-Tag: gdb_7_4-2011-12-13-branchpoint~39 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=04ca3c2272588ef2e5cad18fb5d8ec8b245f2740;p=platform%2Fupstream%2Fbinutils.git 2011-12-09 Andrew Pinski * linespec.c (hash_address_entry): Use iterative_hash_object on each field rather than the struct itself. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 9b7503b..6505699 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2011-12-09 Andrew Pinski + + * linespec.c (hash_address_entry): Use iterative_hash_object on each + field rather than the struct itself. + 2011-12-09 Tom Tromey * breakpoint.c (compare_breakpoints): New function. diff --git a/gdb/linespec.c b/gdb/linespec.c index f3afc58..0ac54f7 100644 --- a/gdb/linespec.c +++ b/gdb/linespec.c @@ -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. */