aboutsummaryrefslogtreecommitdiff
path: root/gdb/solib.h
diff options
context:
space:
mode:
authorAaron Merey <amerey@redhat.com>2021-08-10 22:05:44 -0400
committerAaron Merey <amerey@redhat.com>2021-08-18 22:24:18 -0400
commit8ddf46454aa981246f9611b1897f41fabd2a108d (patch)
tree17b1d9632a2f2e5d8627b7d50585d13690630b10 /gdb/solib.h
parent76bed1fdbd7256228847962770bdc5832c53172c (diff)
downloadgdb-8ddf46454aa981246f9611b1897f41fabd2a108d.zip
gdb-8ddf46454aa981246f9611b1897f41fabd2a108d.tar.gz
gdb-8ddf46454aa981246f9611b1897f41fabd2a108d.tar.bz2
gdb/solib: Refactor scan_dyntag
scan_dyntag is unnecessarily duplicated in solib-svr4.c and solib-dsbt.c. Move this function to solib.c and rename it to gdb_bfd_scan_elf_dyntag. Also add it to solib.h so it is included in both solib-svr4 and solib-dsbt.
Diffstat (limited to 'gdb/solib.h')
-rw-r--r--gdb/solib.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/gdb/solib.h b/gdb/solib.h
index a94e9d3..c50f74e 100644
--- a/gdb/solib.h
+++ b/gdb/solib.h
@@ -112,6 +112,12 @@ extern CORE_ADDR gdb_bfd_lookup_symbol_from_symtab (bfd *abfd,
const void *),
const void *data);
+/* Scan for DESIRED_DYNTAG in .dynamic section of ABFD. If DESIRED_DYNTAG is
+ found, 1 is returned and the corresponding PTR and PTR_ADDR are set. */
+
+extern int gdb_bfd_scan_elf_dyntag (const int desired_dyntag, bfd *abfd,
+ CORE_ADDR *ptr, CORE_ADDR *ptr_addr);
+
/* Enable or disable optional solib event breakpoints as appropriate. */
extern void update_solib_breakpoints (void);