2012-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
authorSergio Durigan Junior <sergiodj@redhat.com>
Wed, 16 May 2012 22:10:49 +0000 (22:10 +0000)
committerSergio Durigan Junior <sergiodj@redhat.com>
Wed, 16 May 2012 22:10:49 +0000 (22:10 +0000)
* 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'.

gdb/ChangeLog
gdb/coffread.c
gdb/dwarf2read.c
gdb/remote.c

index c0d6ab96219d3f8b133b02fdc3345922d81dc95f..b4150edfe650e6b3de2e858818fdb0ac359af1dd 100644 (file)
@@ -1,3 +1,12 @@
+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'.
+
 2012-05-16  Tom Tromey  <tromey@redhat.com>
 
        PR macros/13205:
index ec6f7d72d630810bba4c4ba3585bf0ac729c0ea0..f4e797454c671da216e6c729beb1beb4cbb06ad9 100644 (file)
@@ -311,7 +311,7 @@ cs_section_address (struct coff_symbol *cs, bfd *abfd)
   args.resultp = &sect;
   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;
 }
 
index f89742b180a01f3516d059de0749d5b6d8ec8d6c..fc1a864728d0f7558a60e77a4e08b714e505a51b 100644 (file)
@@ -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)
         {
index 68864d17e90551f59aab0a3c19863c82c6b1aec5..3717a2603adc5c2627480e9228388ba34b5abbd1 100644 (file)
@@ -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);