aboutsummaryrefslogtreecommitdiff
path: root/gdb/remote.c
diff options
context:
space:
mode:
authorSergio Durigan Junior <sergiodj@redhat.com>2012-05-16 22:10:49 +0000
committerSergio Durigan Junior <sergiodj@redhat.com>2012-05-16 22:10:49 +0000
commit81b9b86eb8e37cff4bba2c41d9450312efe3c0fd (patch)
treee703774e89d39b746119d07c6971e0cd0bb33da7 /gdb/remote.c
parentabc9d0dc6edeeabbd65fedb43cf840875156da91 (diff)
downloadgdb-81b9b86eb8e37cff4bba2c41d9450312efe3c0fd.zip
gdb-81b9b86eb8e37cff4bba2c41d9450312efe3c0fd.tar.gz
gdb-81b9b86eb8e37cff4bba2c41d9450312efe3c0fd.tar.bz2
2012-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
* coffread.c (cs_section_address): Passing proper argument for `bfd_get_section_vma'. * dwarf2read.c (dwarf2_locate_sections): Likewise, for `bfd_get_section_flags'. * remote.c (remote_trace_set_readonly_regions): Likewise, for `bfd_get_section_vma'.
Diffstat (limited to 'gdb/remote.c')
-rw-r--r--gdb/remote.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gdb/remote.c b/gdb/remote.c
index 68864d1..3717a26 100644
--- a/gdb/remote.c
+++ b/gdb/remote.c
@@ -10399,6 +10399,7 @@ static void
remote_trace_set_readonly_regions (void)
{
asection *s;
+ bfd *abfd = NULL;
bfd_size_type size;
bfd_vma vma;
int anysecs = 0;
@@ -10419,7 +10420,7 @@ remote_trace_set_readonly_regions (void)
continue;
anysecs = 1;
- vma = bfd_get_section_vma (,s);
+ vma = bfd_get_section_vma (abfd, s);
size = bfd_get_section_size (s);
sprintf_vma (tmp1, vma);
sprintf_vma (tmp2, vma + size);