aboutsummaryrefslogtreecommitdiff
path: root/gdb/remote.c
diff options
context:
space:
mode:
authorHui Zhu <teawater@gmail.com>2010-11-04 04:48:21 +0000
committerHui Zhu <teawater@gmail.com>2010-11-04 04:48:21 +0000
commit608bcef2676e2019d046ff7a485c47fd0b8606bd (patch)
tree6964b39878861f5799751a24b76cc56cfb3fb4ad /gdb/remote.c
parentcef4f75472a54f9dc833d3491a1ee6cf3a5a0968 (diff)
downloadgdb-608bcef2676e2019d046ff7a485c47fd0b8606bd.zip
gdb-608bcef2676e2019d046ff7a485c47fd0b8606bd.tar.gz
gdb-608bcef2676e2019d046ff7a485c47fd0b8606bd.tar.bz2
2010-11-04 Hui Zhu <teawater@gmail.com>
* tracepoint.c (remote_trace_set_readonly_regions): Change lma to vma.
Diffstat (limited to 'gdb/remote.c')
-rw-r--r--gdb/remote.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/gdb/remote.c b/gdb/remote.c
index a4860bc..5044001 100644
--- a/gdb/remote.c
+++ b/gdb/remote.c
@@ -9878,7 +9878,7 @@ remote_trace_set_readonly_regions (void)
{
asection *s;
bfd_size_type size;
- bfd_vma lma;
+ bfd_vma vma;
int anysecs = 0;
if (!exec_bfd)
@@ -9895,10 +9895,10 @@ remote_trace_set_readonly_regions (void)
continue;
anysecs = 1;
- lma = s->lma;
+ vma = bfd_get_section_vma (,s);
size = bfd_get_section_size (s);
- sprintf_vma (tmp1, lma);
- sprintf_vma (tmp2, lma + size);
+ sprintf_vma (tmp1, vma);
+ sprintf_vma (tmp2, vma + size);
sprintf (target_buf + strlen (target_buf),
":%s,%s", tmp1, tmp2);
}