projects
/
deliverable
/
binutils-gdb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[gdb/testsuite] Move code from gdb_init to default_gdb_init
[deliverable/binutils-gdb.git]
/
bfd
/
cache.c
diff --git
a/bfd/cache.c
b/bfd/cache.c
index ed73c161d2c65404e82f20478cd5cdcb2e361195..93abff33fe21006d3d0d4b707ac5f02c5bc39089 100644
(file)
--- a/
bfd/cache.c
+++ b/
bfd/cache.c
@@
-592,15
+592,17
@@
bfd_open_file (bfd *abfd)
{
case read_direction:
case no_direction:
{
case read_direction:
case no_direction:
- abfd->iostream = _bfd_real_fopen (
abfd->filename
, FOPEN_RB);
+ abfd->iostream = _bfd_real_fopen (
bfd_get_filename (abfd)
, FOPEN_RB);
break;
case both_direction:
case write_direction:
if (abfd->opened_once)
{
break;
case both_direction:
case write_direction:
if (abfd->opened_once)
{
- abfd->iostream = _bfd_real_fopen (abfd->filename, FOPEN_RUB);
+ abfd->iostream = _bfd_real_fopen (bfd_get_filename (abfd),
+ FOPEN_RUB);
if (abfd->iostream == NULL)
if (abfd->iostream == NULL)
- abfd->iostream = _bfd_real_fopen (abfd->filename, FOPEN_WUB);
+ abfd->iostream = _bfd_real_fopen (bfd_get_filename (abfd),
+ FOPEN_WUB);
}
else
{
}
else
{
@@
-627,10
+629,11
@@
bfd_open_file (bfd *abfd)
the --info option. */
struct stat s;
the --info option. */
struct stat s;
- if (stat (
abfd->filename
, &s) == 0 && s.st_size != 0)
- unlink_if_ordinary (
abfd->filename
);
+ if (stat (
bfd_get_filename (abfd)
, &s) == 0 && s.st_size != 0)
+ unlink_if_ordinary (
bfd_get_filename (abfd)
);
#endif
#endif
- abfd->iostream = _bfd_real_fopen (abfd->filename, FOPEN_WUB);
+ abfd->iostream = _bfd_real_fopen (bfd_get_filename (abfd),
+ FOPEN_WUB);
abfd->opened_once = TRUE;
}
break;
abfd->opened_once = TRUE;
}
break;
This page took
0.024048 seconds
and
4
git commands to generate.