aboutsummaryrefslogtreecommitdiff
path: root/bfd/cache.c
diff options
context:
space:
mode:
authorKazu Hirata <kazu@codesourcery.com>2000-11-28 21:42:16 +0000
committerKazu Hirata <kazu@codesourcery.com>2000-11-28 21:42:16 +0000
commite60b52c622c0f0183143ddfe011a09bb5c0e1dce (patch)
tree1141cd882ac11a568ff07376784f28472e03804c /bfd/cache.c
parent814f6641275e048cfcd064058c8074d14865584a (diff)
downloadgdb-e60b52c622c0f0183143ddfe011a09bb5c0e1dce.zip
gdb-e60b52c622c0f0183143ddfe011a09bb5c0e1dce.tar.gz
gdb-e60b52c622c0f0183143ddfe011a09bb5c0e1dce.tar.bz2
2000-11-28 Kazu Hirata <kazu@hxi.com>
* aoutx.h: Fix formatting. * bfd-in.h: Likewise. * bfd-in2.h: Likewise. * cache.c: Likewise. * cisco-core.c: Likewise. * coff64-rs6000.c: Likewise. * coffcode.h: Likewise. * coffswap.h: Likewise. * corefile.c: Likewise.
Diffstat (limited to 'bfd/cache.c')
-rw-r--r--bfd/cache.c17
1 files changed, 8 insertions, 9 deletions
diff --git a/bfd/cache.c b/bfd/cache.c
index 91b6c61..c4becf8 100644
--- a/bfd/cache.c
+++ b/bfd/cache.c
@@ -32,7 +32,7 @@ SECTION
<<bfd_cache_lookup>>, which runs around and makes sure that
the required BFD is open. If not, then it chooses a file to
close, closes it and opens the one wanted, returning its file
- handle.
+ handle.
*/
@@ -79,19 +79,18 @@ bfd *bfd_last_cache;
/*
INTERNAL_FUNCTION
bfd_cache_lookup
-
+
DESCRIPTION
Check to see if the required BFD is the same as the last one
looked up. If so, then it can use the stream in the BFD with
impunity, since it can't have changed since the last lookup;
otherwise, it has to perform the complicated lookup function.
-
+
.#define bfd_cache_lookup(x) \
. ((x)==bfd_last_cache? \
- . (FILE*)(bfd_last_cache->iostream): \
+ . (FILE*) (bfd_last_cache->iostream): \
. bfd_cache_lookup_worker(x))
-
-
+
*/
/* Insert a BFD into the cache. */
@@ -262,7 +261,7 @@ FILE *
bfd_open_file (abfd)
bfd *abfd;
{
- abfd->cacheable = true; /* Allow it to be closed later. */
+ abfd->cacheable = true; /* Allow it to be closed later. */
if (open_files >= BFD_CACHE_MAX_OPEN)
{
@@ -339,7 +338,7 @@ DESCRIPTION
quick answer. Find a file descriptor for @var{abfd}. If
necessary, it open it. If there are already more than
<<BFD_CACHE_MAX_OPEN>> files open, it tries to close one first, to
- avoid running out of file descriptors.
+ avoid running out of file descriptors.
*/
FILE *
@@ -349,7 +348,7 @@ bfd_cache_lookup_worker (abfd)
if ((abfd->flags & BFD_IN_MEMORY) != 0)
abort ();
- if (abfd->my_archive)
+ if (abfd->my_archive)
abfd = abfd->my_archive;
if (abfd->iostream != NULL)