diff options
author | Andrew Pinski <apinski@cavium.com> | 2011-12-09 19:22:31 +0000 |
---|---|---|
committer | Andrew Pinski <apinski@cavium.com> | 2011-12-09 19:22:31 +0000 |
commit | 04ca3c2272588ef2e5cad18fb5d8ec8b245f2740 (patch) | |
tree | 597c34633e486117ec84b8aa5c048930bbe208e4 /gdb/linespec.c | |
parent | 8a2c437bd981a866a9bc84161d5c4d399551febd (diff) | |
download | gdb-04ca3c2272588ef2e5cad18fb5d8ec8b245f2740.zip gdb-04ca3c2272588ef2e5cad18fb5d8ec8b245f2740.tar.gz gdb-04ca3c2272588ef2e5cad18fb5d8ec8b245f2740.tar.bz2 |
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.
Diffstat (limited to 'gdb/linespec.c')
-rw-r--r-- | gdb/linespec.c | 4 |
1 files changed, 3 insertions, 1 deletions
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. */ |