]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blobdiff - gdb/gdb_bfd.h
PR gdb/14290:
[thirdparty/binutils-gdb.git] / gdb / gdb_bfd.h
index 5fd361cf8994de61a76aad5c351ed20b55ea6b07..bb70b2767a8f74226934b84e68d356d402396834 100644 (file)
@@ -50,6 +50,15 @@ void gdb_bfd_ref (struct bfd *abfd);
 
 void gdb_bfd_unref (struct bfd *abfd);
 
+/* Mark the CHILD BFD as being a member of PARENT.  Also, increment
+   the reference count of CHILD.  Calling this function ensures that
+   as along as CHILD remains alive, PARENT will as well.  Both CHILD
+   and PARENT must be non-NULL.  This can be called more than once
+   with the same arguments; but it is not allowed to call it for a
+   single CHILD with different values for PARENT.  */
+
+void gdb_bfd_mark_parent (bfd *child, bfd *parent);
+
 /* Try to read or map the contents of the section SECT.  If
    successful, the section data is returned and *SIZE is set to the
    size of the section data; this may not be the same as the size