aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>1994-01-03 18:27:24 +0000
committerIan Lance Taylor <ian@airs.com>1994-01-03 18:27:24 +0000
commit2af2b7c4f26cf4b0237df2d5777df3c2c989d013 (patch)
tree6d59336ee08b10905ab0bd878c9b852f7946beb5
parent07ec88b67fae46a8fd6c58516f2630bef5c9c02f (diff)
downloadgdb-2af2b7c4f26cf4b0237df2d5777df3c2c989d013.zip
gdb-2af2b7c4f26cf4b0237df2d5777df3c2c989d013.tar.gz
gdb-2af2b7c4f26cf4b0237df2d5777df3c2c989d013.tar.bz2
Renamed get_elt_at_filepos to _bfd_get_elt_at_filepos, and made it
non-static.
-rw-r--r--bfd/ChangeLog7
-rw-r--r--bfd/archive.c9
2 files changed, 8 insertions, 8 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index ec30ad5..80bed5d 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -2,6 +2,7 @@ Mon Jan 3 11:41:45 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
* libbfd-in.h (struct artdata): Added tdata field.
(_bfd_add_bfd_to_archive_cache): Declare.
+ (_bfd_get_elt_at_filepos): Declare.
(_bfd_snarf_ar_hdr): Renamed from snarf_ar_hdr.
* libbfd.h: Rebuilt.
* archive.c: Cleaned up some more.
@@ -9,9 +10,9 @@ Mon Jan 3 11:41:45 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
pointer elements of artdata.
(_bfd_add_bfd_to_archive_cache): Renamed from add_bfd_to_cache.
(_bfd_snarf_ar_hdr): Renamed from snarf_ar_hdr.
- (get_extended_arelt_filename, get_elt_at_filepos,
- bfd_construct_extended_name_table, bfd_ar_hdr_from_filesystem,
- compute_and_write_armap): Made static.
+ (_bfd_get_elt_at_filepos): Renamed from get_elt_at_filepos.
+ (get_extended_arelt_filename, bfd_construct_extended_name_table,
+ bfd_ar_hdr_from_filesystem, compute_and_write_armap): Made static.
* ecoff.c: Some comment changes.
(ecoff_slurp_armap): Handle rename of snarf_ar_hdr. Set
ardata->tdata to raw_armap.
diff --git a/bfd/archive.c b/bfd/archive.c
index 9795340..f5b9077 100644
--- a/bfd/archive.c
+++ b/bfd/archive.c
@@ -172,7 +172,6 @@ struct ar_cache {
static char *get_extended_arelt_filename PARAMS ((bfd *arch,
const char *name));
-static bfd *get_elt_at_filepos PARAMS ((bfd *archive, file_ptr filepos));
static boolean do_slurp_bsd_armap PARAMS ((bfd *abfd));
static boolean do_slurp_coff_armap PARAMS ((bfd *abfd));
static const char *normalize PARAMS ((const char *file));
@@ -486,8 +485,8 @@ _bfd_snarf_ar_hdr (abfd)
element, since it handles the bookkeeping so nicely for us.
*/
-static bfd *
-get_elt_at_filepos (archive, filepos)
+bfd *
+_bfd_get_elt_at_filepos (archive, filepos)
bfd *archive;
file_ptr filepos;
{
@@ -546,7 +545,7 @@ bfd_get_elt_at_index (abfd, index)
int index;
{
bfd *result =
- get_elt_at_filepos
+ _bfd_get_elt_at_filepos
(abfd, (bfd_ardata (abfd)->symdefs + index)->file_offset);
return result;
}
@@ -604,7 +603,7 @@ bfd_generic_openr_next_archived_file (archive, last_file)
filestart += filestart % 2;
}
- return get_elt_at_filepos (archive, filestart);
+ return _bfd_get_elt_at_filepos (archive, filestart);
}