From: Sergio Durigan Junior Date: Wed, 16 May 2012 22:10:49 +0000 (+0000) Subject: 2012-05-16 Sergio Durigan Junior X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=81b9b86eb8e37cff4bba2c41d9450312efe3c0fd;p=binutils-gdb.git 2012-05-16 Sergio Durigan Junior * 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'. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index c0d6ab96219..b4150edfe65 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,12 @@ +2012-05-16 Sergio Durigan Junior + + * 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'. + 2012-05-16 Tom Tromey PR macros/13205: diff --git a/gdb/coffread.c b/gdb/coffread.c index ec6f7d72d63..f4e797454c6 100644 --- a/gdb/coffread.c +++ b/gdb/coffread.c @@ -311,7 +311,7 @@ cs_section_address (struct coff_symbol *cs, bfd *abfd) args.resultp = § bfd_map_over_sections (abfd, find_targ_sec, &args); if (sect != NULL) - addr = bfd_get_section_vma (objfile->obfd, sect); + addr = bfd_get_section_vma (abfd, sect); return addr; } diff --git a/gdb/dwarf2read.c b/gdb/dwarf2read.c index f89742b180a..fc1a864728d 100644 --- a/gdb/dwarf2read.c +++ b/gdb/dwarf2read.c @@ -1582,7 +1582,7 @@ dwarf2_locate_sections (bfd *abfd, asection *sectp, void *vnames) } else if (section_is_p (sectp->name, &names->eh_frame)) { - flagword aflag = bfd_get_section_flags (ignore_abfd, sectp); + flagword aflag = bfd_get_section_flags (abfd, sectp); if (aflag & SEC_HAS_CONTENTS) { diff --git a/gdb/remote.c b/gdb/remote.c index 68864d17e90..3717a2603ad 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);