* symfile.c (symfile_bfd_open): Don't copy name. Call
[deliverable/binutils-gdb.git] / gdb / gdb_bfd.h
index c6d94a0f73ffd6ab73c49bd63f3b462b695636c0..a1d5b030beb98f05300ba80cda6ffcbe4ca8c3f5 100644 (file)
 #ifndef GDB_BFD_H
 #define GDB_BFD_H
 
+/* Make a copy ABFD's filename using bfd_alloc, and reassign it to the
+   BFD.  This ensures that the BFD's filename has the same lifetime as
+   the BFD itself.  */
+
+void gdb_bfd_stash_filename (struct bfd *abfd);
+
 /* Acquire a new reference to ABFD.  Returns ABFD for convenience.
    It is fine for ABFD to be NULL; in this case the function does
    nothing and returns NULL.  */
This page took 0.023807 seconds and 4 git commands to generate.