2012-06-15 Hui Zhu <hui_zhu@mentor.com>

* tracepoint.c (tfile_xfer_partial): Add a lseek.
This commit is contained in:
Hui Zhu 2012-06-16 15:07:35 +00:00
parent 233dfcf06d
commit 7ecbc8255e
2 changed files with 6 additions and 0 deletions

View File

@ -1,3 +1,7 @@
2012-06-15 Hui Zhu <hui_zhu@mentor.com>
* tracepoint.c (tfile_xfer_partial): Add a lseek.
2012-06-15 H.J. Lu <hongjiu.lu@intel.com>
* amd64-linux-nat.c (ps_get_thread_area): Check bits_per_word

View File

@ -4545,6 +4545,8 @@ tfile_xfer_partial (struct target_ops *ops, enum target_object object,
if (amt > len)
amt = len;
if (maddr != offset)
lseek (trace_fd, offset - maddr, SEEK_CUR);
tfile_read (readbuf, amt);
return amt;
}