2004-02-17 Elena Zannoni <ezannoni@redhat.com>
authorElena Zannoni <ezannoni@kwikemart.cygnus.com>
Tue, 17 Feb 2004 19:37:37 +0000 (19:37 +0000)
committerElena Zannoni <ezannoni@kwikemart.cygnus.com>
Tue, 17 Feb 2004 19:37:37 +0000 (19:37 +0000)
* objfiles.c (terminate_minimal_symbol_table): Add back
initialization of MSYMBOL_TYPE.

gdb/ChangeLog
gdb/objfiles.c

index fc2c69f425f923886f8166f7a2c57cfdfe797f89..8a1184078d6496c7f46cacabc5915fd18b2aa082 100644 (file)
@@ -1,3 +1,8 @@
+2004-02-17  Elena Zannoni  <ezannoni@redhat.com>
+
+       * objfiles.c (terminate_minimal_symbol_table): Add back
+       initialization of MSYMBOL_TYPE.
+
 2004-02-17  David Mosberger  <davidm@hpl.hp.com>
 
        Committed by Andrew Cagney.
index ce23210bec2900ba4d8e1733fc762194493dd719..61790778d18470718b8eb9dc17e09f10be862ffb 100644 (file)
@@ -283,6 +283,8 @@ terminate_minimal_symbol_table (struct objfile *objfile)
       = &objfile->msymbols[objfile->minimal_symbol_count];
 
     memset (m, 0, sizeof (*m));
+    /* Don't rely on these enumeration values being 0's.  */
+    MSYMBOL_TYPE (m) = mst_unknown;
     SYMBOL_INIT_LANGUAGE_SPECIFIC (m, language_unknown);
   }
 }