/* Target-dependent code for SDE on MIPS processors.
- Copyright (C) 2014 Free Software Foundation, Inc.
+ Copyright (C) 2014-2020 Free Software Foundation, Inc.
This file is part of GDB.
int i;
if (*this_cache != NULL)
- return *this_cache;
+ return (struct trad_frame_cache *) *this_cache;
cache = trad_frame_cache_zalloc (this_frame);
*this_cache = cache;
mips_sde_elf_osabi_sniff_abi_tag_sections (bfd *abfd, asection *sect,
void *obj)
{
- enum gdb_osabi *os_ident_ptr = obj;
+ enum gdb_osabi *os_ident_ptr = (enum gdb_osabi *) obj;
const char *name;
- name = bfd_get_section_name (abfd, sect);
+ name = bfd_section_name (sect);
/* The presence of a section with a ".sde" prefix is indicative
of an SDE binary. */
- if (strncmp (name, ".sde", 4) == 0)
+ if (startswith (name, ".sde"))
*os_ident_ptr = GDB_OSABI_SDE;
}
frame_base_append_sniffer (gdbarch, mips_sde_frame_base_sniffer);
}
-/* Provide a prototype to silence -Wmissing-prototypes. */
-extern initialize_file_ftype _initialize_mips_sde_tdep;
-
void
_initialize_mips_sde_tdep (void)
{