mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-01 20:12:01 +08:00
Use array_view for symbol_impls
It seemed to me that using array_view for symbol_impls would give a bit more error checking, at least when gdb is built in libstdc++ debug mode.
This commit is contained in:
@ -6502,7 +6502,7 @@ static struct symbol_impl symbol_impl[MAX_SYMBOL_IMPLS];
|
||||
/* The globally visible pointer. This is separate from 'symbol_impl'
|
||||
so that it can be const. */
|
||||
|
||||
const struct symbol_impl *symbol_impls = &symbol_impl[0];
|
||||
gdb::array_view<const struct symbol_impl> symbol_impls (symbol_impl);
|
||||
|
||||
/* Make sure we saved enough room in struct symbol. */
|
||||
|
||||
|
@ -1188,7 +1188,7 @@ enum symbol_subclass_kind
|
||||
SYMBOL_RUST_VTABLE
|
||||
};
|
||||
|
||||
extern const struct symbol_impl *symbol_impls;
|
||||
extern gdb::array_view<const struct symbol_impl> symbol_impls;
|
||||
|
||||
/* This structure is space critical. See space comments at the top. */
|
||||
|
||||
|
Reference in New Issue
Block a user