diff options
author | Hui Zhu <teawater@gmail.com> | 2010-11-01 07:00:13 +0000 |
---|---|---|
committer | Hui Zhu <teawater@gmail.com> | 2010-11-01 07:00:13 +0000 |
commit | 2209c8070c6a8e85595f75ef4c08c402ca184841 (patch) | |
tree | e989bb5dbe2dc4926ba3c21c2e7856bc588f380f /gdb/tracepoint.c | |
parent | 3d9e6b12b0e451edbeb2f7d2a79f9418bc6875a5 (diff) | |
download | gdb-2209c8070c6a8e85595f75ef4c08c402ca184841.zip gdb-2209c8070c6a8e85595f75ef4c08c402ca184841.tar.gz gdb-2209c8070c6a8e85595f75ef4c08c402ca184841.tar.bz2 |
2010-10-31 Hui Zhu <teawater@gmail.com>
* tracepoint.c (tfile_xfer_partial): Change lma to vma.
Diffstat (limited to 'gdb/tracepoint.c')
-rw-r--r-- | gdb/tracepoint.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/gdb/tracepoint.c b/gdb/tracepoint.c index 58fc8d4..3484d7a 100644 --- a/gdb/tracepoint.c +++ b/gdb/tracepoint.c @@ -3991,7 +3991,7 @@ tfile_xfer_partial (struct target_ops *ops, enum target_object object, { asection *s; bfd_size_type size; - bfd_vma lma; + bfd_vma vma; for (s = exec_bfd->sections; s; s = s->next) { @@ -3999,16 +3999,16 @@ tfile_xfer_partial (struct target_ops *ops, enum target_object object, (s->flags & SEC_READONLY) == 0) continue; - lma = s->lma; + vma = s->vma; size = bfd_get_section_size (s); - if (lma <= offset && offset < (lma + size)) + if (vma <= offset && offset < (vma + size)) { - amt = (lma + size) - offset; + amt = (vma + size) - offset; if (amt > len) amt = len; amt = bfd_get_section_contents (exec_bfd, s, - readbuf, offset - lma, amt); + readbuf, offset - vma, amt); return amt; } } |