aboutsummaryrefslogtreecommitdiff
path: root/gold/archive.h
diff options
context:
space:
mode:
authorIan Lance Taylor <iant@google.com>2007-09-25 00:27:29 +0000
committerIan Lance Taylor <iant@google.com>2007-09-25 00:27:29 +0000
commitba45d2478b259454e5b4c2d7dcaa7a35ecbf329c (patch)
treee9d069c39988c400a7f41583978372080b661a92 /gold/archive.h
parent5f67a19ce6e7ddd10473df8e2754d9d229c884fe (diff)
downloadgdb-ba45d2478b259454e5b4c2d7dcaa7a35ecbf329c.zip
gdb-ba45d2478b259454e5b4c2d7dcaa7a35ecbf329c.tar.gz
gdb-ba45d2478b259454e5b4c2d7dcaa7a35ecbf329c.tar.bz2
Break out default pbytes argument to read and get_view routines,
adding new routines.
Diffstat (limited to 'gold/archive.h')
-rw-r--r--gold/archive.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/gold/archive.h b/gold/archive.h
index 8c35d22..7fa1d11 100644
--- a/gold/archive.h
+++ b/gold/archive.h
@@ -98,8 +98,12 @@ class Archive
// Get a view into the underlying file.
const unsigned char*
- get_view(off_t start, off_t size, off_t* pbytes = NULL)
- { return this->input_file_->file().get_view(start, size, pbytes); }
+ get_view(off_t start, off_t size)
+ { return this->input_file_->file().get_view(start, size); }
+
+ const unsigned char*
+ get_view_and_size(off_t start, off_t size, off_t* pbytes)
+ { return this->input_file_->file().get_view_and_size(start, size, pbytes); }
// Read the archive symbol map.
void