aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYao Qi <yao@codesourcery.com>2011-06-01 14:46:23 +0000
committerYao Qi <yao@codesourcery.com>2011-06-01 14:46:23 +0000
commit1706c1994444728a4648cedd3b38947748b9c3bf (patch)
tree0879d74da275460f700221e2983e69bcaa0b1fbb
parentd19cd713047833ae6d07de26163d308e0b9bfa71 (diff)
downloadgdb-1706c1994444728a4648cedd3b38947748b9c3bf.zip
gdb-1706c1994444728a4648cedd3b38947748b9c3bf.tar.gz
gdb-1706c1994444728a4648cedd3b38947748b9c3bf.tar.bz2
2011-06-01 Yao Qi <yao@codesourcery.com>
* objfiles.h (obj_section_addr): Update reference to objfile from `abfd' to `obfd'. (obj_section_endaddr): Likewise.
-rw-r--r--gdb/ChangeLog6
-rw-r--r--gdb/objfiles.h4
2 files changed, 8 insertions, 2 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 6b19295..a560fd5 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,9 @@
+2011-06-01 Yao Qi <yao@codesourcery.com>
+
+ * objfiles.h (obj_section_addr): Update reference to objfile from
+ `abfd' to `obfd'.
+ (obj_section_endaddr): Likewise.
+
2011-06-01 Daniel Jacobowitz <drow@false.org>
* MAINTAINERS: Update my email address and affiliation. Also
diff --git a/gdb/objfiles.h b/gdb/objfiles.h
index 04b6d47..6a9a2fd 100644
--- a/gdb/objfiles.h
+++ b/gdb/objfiles.h
@@ -128,13 +128,13 @@ struct obj_section
/* The memory address of section S (vma + offset). */
#define obj_section_addr(s) \
- (bfd_get_section_vma ((s)->objfile->abfd, s->the_bfd_section) \
+ (bfd_get_section_vma ((s)->objfile->obfd, s->the_bfd_section) \
+ obj_section_offset (s))
/* The one-passed-the-end memory address of section S
(vma + size + offset). */
#define obj_section_endaddr(s) \
- (bfd_get_section_vma ((s)->objfile->abfd, s->the_bfd_section) \
+ (bfd_get_section_vma ((s)->objfile->obfd, s->the_bfd_section) \
+ bfd_get_section_size ((s)->the_bfd_section) \
+ obj_section_offset (s))