The solib-target implementation of solib_create_inferior_hook is empty.
Make that method / function pointer optional.
Change-Id: Ie27b8d2c4fc6df74069ac8f88fbe69cf88a6662d
Reviewed-By: Guinevere Larsen <guinevere@redhat.com>
return sos;
}
-static void
-solib_target_solib_create_inferior_hook (int from_tty)
-{
- /* Nothing needed. */
-}
-
static void
solib_target_relocate_section_addresses (solib &so, target_section *sec)
{
solib_target_relocate_section_addresses,
nullptr,
nullptr,
- solib_target_solib_create_inferior_hook,
+ nullptr,
solib_target_current_sos,
nullptr,
solib_target_in_dynsym_resolve_code,
{
const solib_ops *ops = gdbarch_so_ops (current_inferior ()->arch ());
- ops->solib_create_inferior_hook (from_tty);
+ if (ops->solib_create_inferior_hook != nullptr)
+ ops->solib_create_inferior_hook (from_tty);
}
/* See solib.h. */