aboutsummaryrefslogtreecommitdiff
path: root/gold/script.cc
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/script.cc
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/script.cc')
-rw-r--r--gold/script.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/gold/script.cc b/gold/script.cc
index 582f6b7..53cd493 100644
--- a/gold/script.cc
+++ b/gold/script.cc
@@ -305,7 +305,7 @@ Lex::read_file(std::string* contents)
unsigned char buf[BUFSIZ];
do
{
- this->input_file_->file().read(off, sizeof buf, buf, &got);
+ this->input_file_->file().read_up_to(off, sizeof buf, buf, &got);
contents->append(reinterpret_cast<char*>(&buf[0]), got);
off += got;
}