diff options
author | Hui Zhu <teawater@gmail.com> | 2010-11-01 07:00:09 +0000 |
---|---|---|
committer | Hui Zhu <teawater@gmail.com> | 2010-11-01 07:00:09 +0000 |
commit | a858b45ab08abe6362385984f9dd2999aa2df59d (patch) | |
tree | 664266823c980289d95643b940e4314df06ccae3 /gdb | |
parent | bf5cb1467d41bca799f36f4564d8f4c76476dc5b (diff) | |
download | gdb-a858b45ab08abe6362385984f9dd2999aa2df59d.tar.gz |
2010-10-31 Hui Zhu <teawater@gmail.com>
* tracepoint.c (tfile_xfer_partial): Change lma to vma.
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/ChangeLog | 4 | ||||
-rw-r--r-- | gdb/tracepoint.c | 10 |
2 files changed, 9 insertions, 5 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index f8001b6b808..b2c9650c5a8 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,7 @@ +2010-11-01 Hui Zhu <teawater@gmail.com> + + * tracepoint.c (tfile_xfer_partial): Change lma to vma. + 2010-10-28 Hui Zhu <teawater@gmail.com> * tracepoint.c (trace_save): Change utp->actions to diff --git a/gdb/tracepoint.c b/gdb/tracepoint.c index 58fc8d40971..3484d7ad3b6 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; } } |