aboutsummaryrefslogtreecommitdiff
path: root/bfd/libbfd-in.h
diff options
context:
space:
mode:
authorBen Elliston <bje@au.ibm.com>2005-03-10 00:29:35 +0000
committerBen Elliston <bje@au.ibm.com>2005-03-10 00:29:35 +0000
commit109f70961993d87c90fab4a7ba8de115759f5999 (patch)
treec927aa47c0d6c2ae341c57728c2786564580a08a /bfd/libbfd-in.h
parent71892b490cef7947cea80667ef03562721fd9b15 (diff)
downloadgdb-109f70961993d87c90fab4a7ba8de115759f5999.zip
gdb-109f70961993d87c90fab4a7ba8de115759f5999.tar.gz
gdb-109f70961993d87c90fab4a7ba8de115759f5999.tar.bz2
* archive.c: Include hashtab.h.
(struct ar_cache): Rename `arelt' to `arbfd' and remove `next'. (_bfd_look_for_bfd_in_cache): Reimplement using htab_find. (hash_file_ptr): New function. (eq_file_ptr): Likewise. (_bfd_add_bfd_to_archive_cache): Reimplement using a hash table. * libbfd-in.h: Include hashtab.h. (struct artdata): Change `cache' member type to htab_t. * libbfd.h: Rebuild.
Diffstat (limited to 'bfd/libbfd-in.h')
-rw-r--r--bfd/libbfd-in.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/bfd/libbfd-in.h b/bfd/libbfd-in.h
index 396ece3..cc65a56 100644
--- a/bfd/libbfd-in.h
+++ b/bfd/libbfd-in.h
@@ -23,6 +23,8 @@ You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
+#include "hashtab.h"
+
/* Align an address upward to a boundary, expressed as a number of bytes.
E.g. align to an 8-byte boundary with argument of 8. Take care never
to wrap around if the address is within boundary-1 of the end of the
@@ -57,7 +59,7 @@ struct bfd_in_memory
struct artdata {
file_ptr first_file_filepos;
/* Speed up searching the armap */
- struct ar_cache *cache;
+ htab_t cache;
bfd *archive_head; /* Only interesting in output routines */
carsym *symdefs; /* the symdef entries */
symindex symdef_count; /* how many there are */