From 608bcef2676e2019d046ff7a485c47fd0b8606bd Mon Sep 17 00:00:00 2001 From: Hui Zhu Date: Thu, 4 Nov 2010 04:48:21 +0000 Subject: [PATCH] 2010-11-04 Hui Zhu * tracepoint.c (remote_trace_set_readonly_regions): Change lma to vma. --- gdb/ChangeLog | 4 ++++ gdb/remote.c | 8 ++++---- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index baedb0babc..5ef6eb20a4 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,7 @@ +2010-11-04 Hui Zhu + + * tracepoint.c (remote_trace_set_readonly_regions): Change lma to vma. + 2010-11-03 Joel Brobecker * ada-valprint.c (ada_val_print_array): Move variables `eltlen' diff --git a/gdb/remote.c b/gdb/remote.c index a4860bc21e..5044001ab8 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); }