solib_target_so_ops.in_dynsym_resolve_code
= solib_target_in_dynsym_resolve_code;
solib_target_so_ops.bfd_open = solib_bfd_open;
-
- /* Set current_target_so_ops to solib_target_so_ops if not already
- set. */
- if (current_target_so_ops == 0)
- current_target_so_ops = &solib_target_so_ops;
}
#include "debuginfod-support.h"
#include "source.h"
#include "cli/cli-style.h"
+#include "solib-target.h"
/* Architecture-specific operations. */
const struct target_so_ops *result = solib_data.get (gdbarch);
if (result == nullptr)
{
- result = current_target_so_ops;
- set_solib_ops (gdbarch, current_target_so_ops);
+ result = &solib_target_so_ops;
+ set_solib_ops (gdbarch, &solib_target_so_ops);
}
return result;
}
/* external data declarations */
-/* FIXME: gdbarch needs to control this variable, or else every
- configuration needs to call set_solib_ops. */
-struct target_so_ops *current_target_so_ops;
-
/* Local function prototypes */
/* If non-empty, this is a search path for loading non-absolute shared library
/* Find solib binary file and open it. */
extern gdb_bfd_ref_ptr solib_bfd_open (const char *in_pathname);
-/* FIXME: gdbarch needs to control this variable. */
-extern struct target_so_ops *current_target_so_ops;
-
#endif