aboutsummaryrefslogtreecommitdiff
path: root/gdb/gdbarch-gen.h
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-gen.h
parent5898c79ae692ed02dd9267888541b352423a9331 (diff)
downloadgdb-9e468e953cd2f605a3f51d6ef6532e46b8fdd7b4.zip
gdb-9e468e953cd2f605a3f51d6ef6532e46b8fdd7b4.tar.gz
gdb-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-gen.h')
-rw-r--r--gdb/gdbarch-gen.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/gdb/gdbarch-gen.h b/gdb/gdbarch-gen.h
index 0504962..c7a2470 100644
--- a/gdb/gdbarch-gen.h
+++ b/gdb/gdbarch-gen.h
@@ -702,6 +702,11 @@ typedef CORE_ADDR (gdbarch_skip_trampoline_code_ftype) (struct frame_info *frame
extern CORE_ADDR gdbarch_skip_trampoline_code (struct gdbarch *gdbarch, struct frame_info *frame, CORE_ADDR pc);
extern void set_gdbarch_skip_trampoline_code (struct gdbarch *gdbarch, gdbarch_skip_trampoline_code_ftype *skip_trampoline_code);
+/* Vtable of solib operations functions. */
+
+extern const struct target_so_ops * gdbarch_so_ops (struct gdbarch *gdbarch);
+extern void set_gdbarch_so_ops (struct gdbarch *gdbarch, const struct target_so_ops * so_ops);
+
/* If in_solib_dynsym_resolve_code() returns true, and SKIP_SOLIB_RESOLVER
evaluates non-zero, this is the address where the debugger will place
a step-resume breakpoint to get us past the dynamic linker. */