[Lldb-commits] [lldb] r167012 - /lldb/branches/windows/source/Host/common/File.cpp
Carlo Kok
ck at remobjects.com
Tue Oct 30 04:55:43 PDT 2012
Author: carlokok
Date: Tue Oct 30 06:55:43 2012
New Revision: 167012
URL: http://llvm.org/viewvc/llvm-project?rev=167012&view=rev
Log:
Windows fix: "File" doesn't actually seek when reading, make it always run from the start of the file instead of the given offset.
Modified:
lldb/branches/windows/source/Host/common/File.cpp
Modified: lldb/branches/windows/source/Host/common/File.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/branches/windows/source/Host/common/File.cpp?rev=167012&r1=167011&r2=167012&view=diff
==============================================================================
--- lldb/branches/windows/source/Host/common/File.cpp (original)
+++ lldb/branches/windows/source/Host/common/File.cpp Tue Oct 30 06:55:43 2012
@@ -557,6 +557,7 @@
return error;
#else
long cur = ::lseek(m_descriptor, 0, SEEK_CUR);
+ SeekFromStart(offset);
Error error = Read(buf, num_bytes);
if (!error.Fail())
SeekFromStart(cur);
More information about the lldb-commits
mailing list