diff options
author | Tom Tromey <tromey@adacore.com> | 2022-08-08 10:14:53 -0600 |
---|---|---|
committer | Tom Tromey <tromey@adacore.com> | 2022-09-20 12:25:19 -0600 |
commit | 5898c79ae692ed02dd9267888541b352423a9331 (patch) | |
tree | 02275ac939378e0527e8445de4ba2715ff180285 /gdb/solib.c | |
parent | 430676bc51fb5278e89fd9ef84ac9e7ab71f46c5 (diff) | |
download | gdb-5898c79ae692ed02dd9267888541b352423a9331.zip gdb-5898c79ae692ed02dd9267888541b352423a9331.tar.gz gdb-5898c79ae692ed02dd9267888541b352423a9331.tar.bz2 |
Remove current_target_so_ops
current_target_so_ops is only set in a single place. It seems better
to simply remove it.
Diffstat (limited to 'gdb/solib.c')
-rw-r--r-- | gdb/solib.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/gdb/solib.c b/gdb/solib.c index 25adf58..859d345 100644 --- a/gdb/solib.c +++ b/gdb/solib.c @@ -53,6 +53,7 @@ #include "debuginfod-support.h" #include "source.h" #include "cli/cli-style.h" +#include "solib-target.h" /* Architecture-specific operations. */ @@ -67,8 +68,8 @@ solib_ops (struct gdbarch *gdbarch) 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; } @@ -84,10 +85,6 @@ set_solib_ops (struct gdbarch *gdbarch, const struct target_so_ops *new_ops) /* 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 |