mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-26 13:56:22 +08:00
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.
This commit is contained in:
@ -1,3 +1,9 @@
|
|||||||
|
2012-09-11 Joel Brobecker <brobecker@adacore.com>
|
||||||
|
|
||||||
|
* minsyms.c (install_minimal_symbols): Use memset to fill entire
|
||||||
|
minimal_symbol struct object, rather than setting some of its
|
||||||
|
fields one by one.
|
||||||
|
|
||||||
2012-09-11 Andrew Burgess <aburgess@broadcom.com>
|
2012-09-11 Andrew Burgess <aburgess@broadcom.com>
|
||||||
|
|
||||||
* c-typeprint.c (c_type_print_varspec_prefix): Pass through the
|
* c-typeprint.c (c_type_print_varspec_prefix): Pass through the
|
||||||
|
@ -1229,13 +1229,7 @@ install_minimal_symbols (struct objfile *objfile)
|
|||||||
symbol count does *not* include this null symbol, which is why it
|
symbol count does *not* include this null symbol, which is why it
|
||||||
is indexed by mcount and not mcount-1. */
|
is indexed by mcount and not mcount-1. */
|
||||||
|
|
||||||
SYMBOL_LINKAGE_NAME (&msymbols[mcount]) = NULL;
|
memset (&msymbols[mcount], 0, sizeof (struct minimal_symbol));
|
||||||
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);
|
|
||||||
|
|
||||||
/* Attach the minimal symbol table to the specified objfile.
|
/* Attach the minimal symbol table to the specified objfile.
|
||||||
The strings themselves are also located in the objfile_obstack
|
The strings themselves are also located in the objfile_obstack
|
||||||
|
Reference in New Issue
Block a user