aboutsummaryrefslogtreecommitdiff
path: root/bfd/opncls.c
diff options
context:
space:
mode:
authorJan Kratochvil <jan.kratochvil@redhat.com>2007-08-09 14:22:03 +0000
committerJan Kratochvil <jan.kratochvil@redhat.com>2007-08-09 14:22:03 +0000
commitc309eac2074a11c52d122e543d197103c6020f6c (patch)
tree906a8a45ef07dceb0cc044e8144b7103bb2701c7 /bfd/opncls.c
parentc3ad16c0cde34747ea3f1d3fb9c17dd85d9ca475 (diff)
downloadgdb-c309eac2074a11c52d122e543d197103c6020f6c.zip
gdb-c309eac2074a11c52d122e543d197103c6020f6c.tar.gz
gdb-c309eac2074a11c52d122e543d197103c6020f6c.tar.bz2
* opncls.c (bfd_openr_iovec): Fix the OPEN parameter macro expansion.
Diffstat (limited to 'bfd/opncls.c')
-rw-r--r--bfd/opncls.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/bfd/opncls.c b/bfd/opncls.c
index 02066d8..3d02c32 100644
--- a/bfd/opncls.c
+++ b/bfd/opncls.c
@@ -545,7 +545,8 @@ bfd_openr_iovec (const char *filename, const char *target,
nbfd->filename = filename;
nbfd->direction = read_direction;
- stream = open (nbfd, open_closure);
+ /* `open (...)' would get expanded by an the open(2) syscall macro. */
+ stream = (*open) (nbfd, open_closure);
if (stream == NULL)
{
_bfd_delete_bfd (nbfd);