diff options
author | Ian Lance Taylor <iant@google.com> | 2007-09-25 00:27:29 +0000 |
---|---|---|
committer | Ian Lance Taylor <iant@google.com> | 2007-09-25 00:27:29 +0000 |
commit | ba45d2478b259454e5b4c2d7dcaa7a35ecbf329c (patch) | |
tree | e9d069c39988c400a7f41583978372080b661a92 /gold/archive.h | |
parent | 5f67a19ce6e7ddd10473df8e2754d9d229c884fe (diff) | |
download | gdb-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.h | 8 |
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 |