PR symtab/20652 - fix psymbol_compare
This fixes an oversight in psymbol_compare. 2016-10-05 Tom Tromey <tom@tromey.com> PR symtab/20652: * psymtab.c (psymbol_compare): Correctly compare "ginfo.value" fields.
This commit is contained in:
parent
fdebf1a415
commit
3e611445bf
2 changed files with 7 additions and 1 deletions
|
@ -1,3 +1,9 @@
|
|||
2016-10-05 Tom Tromey <tom@tromey.com>
|
||||
|
||||
PR symtab/20652:
|
||||
* psymtab.c (psymbol_compare): Correctly compare "ginfo.value"
|
||||
fields.
|
||||
|
||||
2016-10-05 Andreas Arnez <arnez@linux.vnet.ibm.com>
|
||||
|
||||
* dwarf2expr.c (dwarf_expr_require_composition): Allow
|
||||
|
|
|
@ -1577,7 +1577,7 @@ psymbol_compare (const void *addr1, const void *addr2, int length)
|
|||
struct partial_symbol *sym1 = (struct partial_symbol *) addr1;
|
||||
struct partial_symbol *sym2 = (struct partial_symbol *) addr2;
|
||||
|
||||
return (memcmp (&sym1->ginfo.value, &sym1->ginfo.value,
|
||||
return (memcmp (&sym1->ginfo.value, &sym2->ginfo.value,
|
||||
sizeof (sym1->ginfo.value)) == 0
|
||||
&& sym1->ginfo.language == sym2->ginfo.language
|
||||
&& PSYMBOL_DOMAIN (sym1) == PSYMBOL_DOMAIN (sym2)
|
||||
|
|
Loading…
Add table
Reference in a new issue