Fix custom hash regression. 2010-09-01 Sami Wagiaalla * psymtab.c (add_psymbol_to_bcache): memset psymbol to 0 before initializing individual fields. diff --git a/gdb/psymtab.c b/gdb/psymtab.c index a5d2f98..a8b63f7 100644 --- a/gdb/psymtab.c +++ b/gdb/psymtab.c @@ -1378,6 +1378,8 @@ add_psymbol_to_bcache (char *name, int namelength, int copy_name, { struct partial_symbol psymbol; + memset (&psymbol, 0, sizeof (psymbol)); + /* val and coreaddr are mutually exclusive, one of them *will* be zero */ if (val != 0) {