aboutsummaryrefslogtreecommitdiff
path: root/gdb/gdbarch-components.py
diff options
context:
space:
mode:
authorTom Tromey <tromey@adacore.com>2022-08-08 10:41:43 -0600
committerTom Tromey <tromey@adacore.com>2022-09-20 12:25:19 -0600
commit9e468e953cd2f605a3f51d6ef6532e46b8fdd7b4 (patch)
tree2368c5b3ea5ed2f5aa78b92c384186f3290763b2 /gdb/gdbarch-components.py
parent5898c79ae692ed02dd9267888541b352423a9331 (diff)
downloadbinutils-9e468e953cd2f605a3f51d6ef6532e46b8fdd7b4.zip
binutils-9e468e953cd2f605a3f51d6ef6532e46b8fdd7b4.tar.gz
binutils-9e468e953cd2f605a3f51d6ef6532e46b8fdd7b4.tar.bz2
Move solib_ops into gdbarch
This changs solib_ops to be an ordinary gdbarch value and updates all the uses. This removes a longstanding FIXME and makes the code somewhat cleaner as well.
Diffstat (limited to 'gdb/gdbarch-components.py')
-rw-r--r--gdb/gdbarch-components.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/gdb/gdbarch-components.py b/gdb/gdbarch-components.py
index 71aa599..ad71bf7 100644
--- a/gdb/gdbarch-components.py
+++ b/gdb/gdbarch-components.py
@@ -1262,6 +1262,14 @@ Function(
invalid=False,
)
+Value(
+ comment="Vtable of solib operations functions.",
+ type="const struct target_so_ops *",
+ name="so_ops",
+ postdefault="&solib_target_so_ops",
+ printer="host_address_to_string (gdbarch->so_ops)",
+)
+
Method(
comment="""
If in_solib_dynsym_resolve_code() returns true, and SKIP_SOLIB_RESOLVER