From 5bf0017e007f8f856febd5530c3e919feecd4fdb Mon Sep 17 00:00:00 2001 From: Elena Zannoni Date: Tue, 17 Feb 2004 19:37:37 +0000 Subject: [PATCH] 2004-02-17 Elena Zannoni * objfiles.c (terminate_minimal_symbol_table): Add back initialization of MSYMBOL_TYPE. --- gdb/ChangeLog | 5 +++++ gdb/objfiles.c | 2 ++ 2 files changed, 7 insertions(+) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index fc2c69f425f..8a1184078d6 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2004-02-17 Elena Zannoni + + * objfiles.c (terminate_minimal_symbol_table): Add back + initialization of MSYMBOL_TYPE. + 2004-02-17 David Mosberger Committed by Andrew Cagney. diff --git a/gdb/objfiles.c b/gdb/objfiles.c index ce23210bec2..61790778d18 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); } } -- 2.30.2