return sos;
}
-/* Implement the "open_symbol_file_object" solib_ops method. */
-
-static int
-solib_aix_open_symbol_file_object (int from_tty)
-{
- return 0;
-}
-
/* Implement the "in_dynsym_resolve_code" solib_ops method. */
static bool
nullptr,
solib_aix_solib_create_inferior_hook,
solib_aix_current_sos,
- solib_aix_open_symbol_file_object,
+ nullptr,
solib_aix_in_dynsym_resolve_code,
solib_aix_bfd_open,
nullptr,
return buf;
}
-/* Not used. I don't see how the main symbol file can be found: the
- interpreter name is needed and it is known from the executable file.
- Note that darwin-nat.c implements pid_to_exec_file. */
-
-static int
-open_symbol_file_object (int from_tty)
-{
- return 0;
-}
-
/* Build a list of currently loaded shared objects. See solib-svr4.c. */
static owning_intrusive_list<solib>
darwin_clear_solib,
darwin_solib_create_inferior_hook,
darwin_current_sos,
- open_symbol_file_object,
+ nullptr,
darwin_in_dynsym_resolve_code,
darwin_bfd_open,
nullptr,
static void dsbt_relocate_main_executable (void);
static int enable_break (void);
-/* See solib.h. */
-
-static int
-open_symbol_file_object (int from_tty)
-{
- /* Unimplemented. */
- return 0;
-}
-
/* Given a loadmap and an address, return the displacement needed
to relocate the address. */
dsbt_clear_solib,
dsbt_solib_create_inferior_hook,
dsbt_current_sos,
- open_symbol_file_object,
+ nullptr,
dsbt_in_dynsym_resolve_code,
solib_bfd_open,
nullptr,
static CORE_ADDR main_got (void);
static int enable_break2 (void);
-/* Implement the "open_symbol_file_object" solib_ops method. */
-
-static int
-open_symbol_file_object (int from_tty)
-{
- /* Unimplemented. */
- return 0;
-}
-
/* Cached value for lm_base(), below. */
static CORE_ADDR lm_base_cache = 0;
frv_clear_solib,
frv_solib_create_inferior_hook,
frv_current_sos,
- open_symbol_file_object,
+ nullptr,
frv_in_dynsym_resolve_code,
solib_bfd_open,
nullptr,
sec->endaddr += offset;
}
-static int
-solib_target_open_symbol_file_object (int from_tty)
-{
- /* We can't locate the main symbol file based on the target's
- knowledge; the user has to specify it. */
- return 0;
-}
-
static bool
solib_target_in_dynsym_resolve_code (CORE_ADDR pc)
{
nullptr,
solib_target_solib_create_inferior_hook,
solib_target_current_sos,
- solib_target_open_symbol_file_object,
+ nullptr,
solib_target_in_dynsym_resolve_code,
solib_bfd_open,
nullptr,
have not opened a symbol file, we may be able to get its
symbols now! */
if (inf->attach_flag
- && current_program_space->symfile_object_file == NULL)
+ && current_program_space->symfile_object_file == nullptr
+ && ops->open_symbol_file_object != nullptr)
{
try
{