aboutsummaryrefslogtreecommitdiff
path: root/gdb/minsyms.c
diff options
context:
space:
mode:
authorMichael Chastain <mec@google.com>2003-11-11 20:04:52 +0000
committerMichael Chastain <mec@google.com>2003-11-11 20:04:52 +0000
commitf594e5e9c9b41dbe1223b25be5ddeacc5cd72e2e (patch)
tree728d69ebc663806ac63a66f257dc4085c4e27a4c /gdb/minsyms.c
parentd9407aaa549c6270b7d99443835d287bce6b50a7 (diff)
downloadgdb-f594e5e9c9b41dbe1223b25be5ddeacc5cd72e2e.zip
gdb-f594e5e9c9b41dbe1223b25be5ddeacc5cd72e2e.tar.gz
gdb-f594e5e9c9b41dbe1223b25be5ddeacc5cd72e2e.tar.bz2
2003-11-07 Michael Chastain <mec@shout.net>
* symtab.h (struct minimal_symbol): Add size. * dbxread.c: Use it. * elfread.c: (record_minimal_symbol_and_info): Do not use info. Rename to record_minimal_symbol. (elf_symtab_read): Set MSYMBOL_SIZE explicitly. * minsyms.c (prim_record_minimal_symbol_and_info): Initialize MSYMBOL_SIZE. (install_minimal_symbols): Ditto. * objfiles.c (terminate_minimal_symbol_table): Ditto. * arm-tdep.c: Delete unused MSYMBOL_SIZE. * m68hc11-tdep.c: Ditto. * mips-tdep.c: Ditto. * sh64-tdep.c: Ditto.
Diffstat (limited to 'gdb/minsyms.c')
-rw-r--r--gdb/minsyms.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gdb/minsyms.c b/gdb/minsyms.c
index afa36b1..df35956 100644
--- a/gdb/minsyms.c
+++ b/gdb/minsyms.c
@@ -611,6 +611,7 @@ prim_record_minimal_symbol_and_info (const char *name, CORE_ADDR address,
MSYMBOL_TYPE (msymbol) = ms_type;
/* FIXME: This info, if it remains, needs its own field. */
MSYMBOL_INFO (msymbol) = info; /* FIXME! */
+ MSYMBOL_SIZE (msymbol) = 0;
/* The hash pointers must be cleared! If they're not,
add_minsym_to_hash_table will NOT add this msymbol to the hash table. */
@@ -890,6 +891,7 @@ install_minimal_symbols (struct objfile *objfile)
SYMBOL_LINKAGE_NAME (&msymbols[mcount]) = NULL;
SYMBOL_VALUE_ADDRESS (&msymbols[mcount]) = 0;
MSYMBOL_INFO (&msymbols[mcount]) = NULL;
+ MSYMBOL_SIZE (&msymbols[mcount]) = 0;
MSYMBOL_TYPE (&msymbols[mcount]) = mst_unknown;
SYMBOL_INIT_LANGUAGE_SPECIFIC (&msymbols[mcount], language_unknown);