xml_fetch_content_from_file: Read in whole file in one go
authorPedro Alves <palves@redhat.com>
Thu, 19 Oct 2017 14:25:59 +0000 (15:25 +0100)
committerPedro Alves <palves@redhat.com>
Thu, 19 Oct 2017 14:25:59 +0000 (15:25 +0100)
commit2edf834e298b15c882678db22e86745f701807fa
tree313e311b94f78d0c0044cc682bf4eab2b45ed169
parent280958942b74f3164708700f195188c4d3446f58
xml_fetch_content_from_file: Read in whole file in one go

There doesn't seem to be a good reason we're reading the file one
chunk at a time.

gdb/ChangeLog:
2017-10-19  Pedro Alves  <palves@redhat.com>

* xml-support.c (xml_fetch_content_from_file): Don't read in
chunks.  Instead use fseek to determine the file's size, and read
it in one go.
gdb/ChangeLog
gdb/xml-support.c
This page took 0.024947 seconds and 4 git commands to generate.