aboutsummaryrefslogtreecommitdiff
path: root/bfd/opncls.c
diff options
context:
space:
mode:
authorPaul Pluzhnikov <ppluzhnikov@google.com>2009-06-11 00:41:03 +0000
committerPaul Pluzhnikov <ppluzhnikov@google.com>2009-06-11 00:41:03 +0000
commit25b88f335af1b8c7a4428710ffd9066338b167c0 (patch)
treefd707bda1bcc8d4d609622b5da49451b5c2e3303 /bfd/opncls.c
parente433f867b0ffb2181886a9c2b3281ad5931ef31b (diff)
downloadgdb-25b88f335af1b8c7a4428710ffd9066338b167c0.zip
gdb-25b88f335af1b8c7a4428710ffd9066338b167c0.tar.gz
gdb-25b88f335af1b8c7a4428710ffd9066338b167c0.tar.bz2
2009-06-10 Paul Pluzhnikov <ppluzhnikov@google.com>
* bfd-in2.h: bfd_mmap prototype * bfdio.c (bfd_mmap): New function. * libbfd.h (bfd_iovec): Add bmmap. * cache.c (cache_bmap): New function. (cache_iovec): Initialize bmmap member. * opencls.c (opncls_bmmap): New function. (opncls_iovec): Initialize bmmap member.
Diffstat (limited to 'bfd/opncls.c')
-rw-r--r--bfd/opncls.c13
1 files changed, 12 insertions, 1 deletions
diff --git a/bfd/opncls.c b/bfd/opncls.c
index 7be82b2..3add02f 100644
--- a/bfd/opncls.c
+++ b/bfd/opncls.c
@@ -505,9 +505,20 @@ opncls_bstat (struct bfd *abfd, struct stat *sb)
return (vec->stat) (abfd, vec->stream, sb);
}
+static void *
+opncls_bmmap (struct bfd *abfd ATTRIBUTE_UNUSED,
+ void *addr ATTRIBUTE_UNUSED,
+ bfd_size_type len ATTRIBUTE_UNUSED,
+ int prot ATTRIBUTE_UNUSED,
+ int flags ATTRIBUTE_UNUSED,
+ file_ptr offset ATTRIBUTE_UNUSED)
+{
+ return (void *) -1;
+}
+
static const struct bfd_iovec opncls_iovec = {
&opncls_bread, &opncls_bwrite, &opncls_btell, &opncls_bseek,
- &opncls_bclose, &opncls_bflush, &opncls_bstat
+ &opncls_bclose, &opncls_bflush, &opncls_bstat, &opncls_bmmap
};
bfd *