mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2025-02-17 13:10:12 +08:00
2012-06-15 Hui Zhu <hui_zhu@mentor.com>
* tracepoint.c (tfile_xfer_partial): Add a lseek.
This commit is contained in:
parent
233dfcf06d
commit
7ecbc8255e
@ -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
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user