aboutsummaryrefslogtreecommitdiff
path: root/gdb/gdb_bfd.h
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2012-11-28 18:48:38 +0000
committerTom Tromey <tromey@redhat.com>2012-11-28 18:48:38 +0000
commit0cd61f44022489a19b75ee744e2bff83180d0cd5 (patch)
treeae18b0598e1af5e2e1f4706ce82f15b3c0f917e6 /gdb/gdb_bfd.h
parentd406f3e430b5a156b943895791f2d081e78c8194 (diff)
downloadgdb-0cd61f44022489a19b75ee744e2bff83180d0cd5.zip
gdb-0cd61f44022489a19b75ee744e2bff83180d0cd5.tar.gz
gdb-0cd61f44022489a19b75ee744e2bff83180d0cd5.tar.bz2
PR gdb/14290:
* solib-darwin.c (gdb_bfd_mach_o_fat_extract): New function. (darwin_solib_get_all_image_info_addr_at_init, darwin_bfd_open): Use it. * gdb_bfd.h (gdb_bfd_mark_parent): Declare. * gdb_bfd.c (gdb_bfd_mark_parent): New function. (gdb_bfd_openr_next_archived_file): Use it.
Diffstat (limited to 'gdb/gdb_bfd.h')
-rw-r--r--gdb/gdb_bfd.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/gdb/gdb_bfd.h b/gdb/gdb_bfd.h
index 5fd361c..bb70b27 100644
--- a/gdb/gdb_bfd.h
+++ b/gdb/gdb_bfd.h
@@ -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