mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-27 22:48:57 +08:00
Break out default pbytes argument to read and get_view routines,
adding new routines.
This commit is contained in:
@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user