aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteve Chamberlain <sac@cygnus>1992-05-02 01:43:21 +0000
committerSteve Chamberlain <sac@cygnus>1992-05-02 01:43:21 +0000
commit9068cbe7b42321e7f400332d88f82b5cf2846a58 (patch)
treeda141e2b046e93ff8b90a3d68cdd58a9252dcef3
parent69e0d34d4d51fa8f9b68a5dbdfbbacb5accd5ddd (diff)
downloadgdb-9068cbe7b42321e7f400332d88f82b5cf2846a58.zip
gdb-9068cbe7b42321e7f400332d88f82b5cf2846a58.tar.gz
gdb-9068cbe7b42321e7f400332d88f82b5cf2846a58.tar.bz2
new_bfd_contained_in : Inherit target->defaulted from parent
-rw-r--r--bfd/opncls.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/bfd/opncls.c b/bfd/opncls.c
index ade9476..3acc1fd 100644
--- a/bfd/opncls.c
+++ b/bfd/opncls.c
@@ -63,7 +63,9 @@ bfd *new_bfd()
nbfd->sections = (asection *)NULL;
nbfd->cacheable = false;
nbfd->flags = NO_FLAGS;
- nbfd->mtime_set = 0;
+ nbfd->mtime_set = false;
+
+
return nbfd;
}
@@ -76,6 +78,7 @@ bfd *obfd;
nbfd->xvec = obfd->xvec;
nbfd->my_archive = obfd;
nbfd->direction = read_direction;
+ nbfd->target_defaulted = obfd->target_defaulted;
return nbfd;
}
@@ -189,10 +192,10 @@ DEFUN(bfd_fdopenr,(filename, target, fd),
}
#ifdef FASCIST_FDOPEN
- nbfd->iostream = (char *) fdopen (fd, "rb");
+ nbfd->iostream = (char *) fdopen (fd, FOPEN_RB);
#else
/* if the fd were open for read only, this still would not hurt: */
- nbfd->iostream = (char *) fdopen (fd, "r+b");
+ nbfd->iostream = (char *) fdopen (fd, FOPEN_RUB);
#endif
if (nbfd->iostream == NULL) {
(void) obstack_free (&nbfd->memory, (PTR)0);