aboutsummaryrefslogtreecommitdiff
path: root/gdb/tracepoint.c
diff options
context:
space:
mode:
authorHui Zhu <teawater@gmail.com>2012-06-16 15:07:35 +0000
committerHui Zhu <teawater@gmail.com>2012-06-16 15:07:35 +0000
commit7ecbc8255e41dc2a0dd28edc1e48c2dbe683f3a7 (patch)
tree8efb21291e6047d22dc578edf30e66e3ff1967f4 /gdb/tracepoint.c
parent233dfcf06d379c41f7c0e8cc024ad16eeb7f3636 (diff)
downloadgdb-7ecbc8255e41dc2a0dd28edc1e48c2dbe683f3a7.zip
gdb-7ecbc8255e41dc2a0dd28edc1e48c2dbe683f3a7.tar.gz
gdb-7ecbc8255e41dc2a0dd28edc1e48c2dbe683f3a7.tar.bz2
2012-06-15 Hui Zhu <hui_zhu@mentor.com>
* tracepoint.c (tfile_xfer_partial): Add a lseek.
Diffstat (limited to 'gdb/tracepoint.c')
-rw-r--r--gdb/tracepoint.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gdb/tracepoint.c b/gdb/tracepoint.c
index 63f66c7..6d76f4b 100644
--- a/gdb/tracepoint.c
+++ b/gdb/tracepoint.c
@@ -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;
}