diff options
author | qiyao <qiyao> | 2011-06-01 14:46:21 +0000 |
---|---|---|
committer | qiyao <qiyao> | 2011-06-01 14:46:21 +0000 |
commit | fbd18a3e2a04a161758f771a64f49e70fbcbd6c4 (patch) | |
tree | 9f59cb708f0b244b560eee8ee106dbb1dde81a31 /gdb/objfiles.h | |
parent | dbed69e4016c4f107faa5e3f4ff44f5b58181d75 (diff) | |
download | gdb-fbd18a3e2a04a161758f771a64f49e70fbcbd6c4.tar.gz |
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.
Diffstat (limited to 'gdb/objfiles.h')
-rw-r--r-- | gdb/objfiles.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/objfiles.h b/gdb/objfiles.h index 04b6d473c1d..6a9a2fdfe27 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)) |