mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-26 09:08:59 +00:00
Use 'const' in some gdbarch methods
This changes a couple of gdbarch methods to use 'const' for an "asymbol *" parameter. These methods shouldn't be modifying the underlying symbol in the BFD. Approved-By: Simon Marchi <simon.marchi@efficios.com>
This commit is contained in:
@@ -422,9 +422,10 @@ mips_unmake_compact_addr (CORE_ADDR addr)
|
||||
in a minimal symbol. */
|
||||
|
||||
static void
|
||||
mips_elf_make_msymbol_special (asymbol * sym, struct minimal_symbol *msym)
|
||||
mips_elf_make_msymbol_special (const asymbol * sym,
|
||||
struct minimal_symbol *msym)
|
||||
{
|
||||
elf_symbol_type *elfsym = (elf_symbol_type *) sym;
|
||||
const elf_symbol_type *elfsym = (const elf_symbol_type *) sym;
|
||||
unsigned char st_other;
|
||||
|
||||
if ((sym->flags & BSF_SYNTHETIC) == 0)
|
||||
|
||||
Reference in New Issue
Block a user