diff options
author | Joel Brobecker <brobecker@gnat.com> | 2012-09-11 21:26:01 +0000 |
---|---|---|
committer | Joel Brobecker <brobecker@gnat.com> | 2012-09-11 21:26:01 +0000 |
commit | 3d981902a7c0dd5a0eabc8e2a11463f9f3217e5d (patch) | |
tree | 83b3ac5a2d32a8c390a349ff114177243de96587 /gdb/minsyms.c | |
parent | e1a4d606536a160b698d39ef40676935a15fc302 (diff) | |
download | gdb-3d981902a7c0dd5a0eabc8e2a11463f9f3217e5d.tar.gz |
install_minimal_symbols: use memset instead of setting each field.
gdb/ChangeLog:
* minsyms.c (install_minimal_symbols): Use memset to fill entire
minimal_symbol struct object, rather than setting some of its
fields one by one.
Diffstat (limited to 'gdb/minsyms.c')
-rw-r--r-- | gdb/minsyms.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/gdb/minsyms.c b/gdb/minsyms.c index 1070fff644e..b6df4eae2d7 100644 --- a/gdb/minsyms.c +++ b/gdb/minsyms.c @@ -1229,13 +1229,7 @@ install_minimal_symbols (struct objfile *objfile) symbol count does *not* include this null symbol, which is why it is indexed by mcount and not mcount-1. */ - SYMBOL_LINKAGE_NAME (&msymbols[mcount]) = NULL; - SYMBOL_VALUE_ADDRESS (&msymbols[mcount]) = 0; - MSYMBOL_TARGET_FLAG_1 (&msymbols[mcount]) = 0; - MSYMBOL_TARGET_FLAG_2 (&msymbols[mcount]) = 0; - MSYMBOL_SIZE (&msymbols[mcount]) = 0; - MSYMBOL_TYPE (&msymbols[mcount]) = mst_unknown; - SYMBOL_SET_LANGUAGE (&msymbols[mcount], language_unknown); + memset (&msymbols[mcount], 0, sizeof (struct minimal_symbol)); /* Attach the minimal symbol table to the specified objfile. The strings themselves are also located in the objfile_obstack |