aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorElena Zannoni <ezannoni@kwikemart.cygnus.com>2004-02-17 19:37:37 +0000
committerElena Zannoni <ezannoni@kwikemart.cygnus.com>2004-02-17 19:37:37 +0000
commit5bf0017e007f8f856febd5530c3e919feecd4fdb (patch)
treecc0efe515ef5d44ff2df6f3891eced5a87bbfa78 /gdb
parent9fc9f5e2ecd67988f90cc897ea1b62ad909aa5bd (diff)
downloadgdb-5bf0017e007f8f856febd5530c3e919feecd4fdb.zip
gdb-5bf0017e007f8f856febd5530c3e919feecd4fdb.tar.gz
gdb-5bf0017e007f8f856febd5530c3e919feecd4fdb.tar.bz2
2004-02-17 Elena Zannoni <ezannoni@redhat.com>
* objfiles.c (terminate_minimal_symbol_table): Add back initialization of MSYMBOL_TYPE.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/ChangeLog5
-rw-r--r--gdb/objfiles.c2
2 files changed, 7 insertions, 0 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index fc2c69f..8a11840 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -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.
diff --git a/gdb/objfiles.c b/gdb/objfiles.c
index ce23210..6179077 100644
--- a/gdb/objfiles.c
+++ b/gdb/objfiles.c
@@ -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);
}
}