summaryrefslogtreecommitdiff
path: root/gdb/maint.c
diff options
context:
space:
mode:
authorPedro Alves <pedro@codesourcery.com>2008-08-20 11:21:44 +0000
committerPedro Alves <pedro@codesourcery.com>2008-08-20 11:21:44 +0000
commitbf1a4ccfd65a331ca3dad693b1fe086584ff9c07 (patch)
tree53ef03bd26d6538b4dfea318263a4ae00812fa4b /gdb/maint.c
parent6d75a0af9668ee315957996994a07adf2b38bf4e (diff)
downloadgdb-bf1a4ccfd65a331ca3dad693b1fe086584ff9c07.tar.gz
* objfiles.h (struct obj_section): Remove addr and endaddr fields.
(obj_section_offset, obj_section_addr, obj_section_endaddr): New macros. * objfiles.c (add_to_objfile_sections): Don't set addr, endaddr and offset. Use size_t instead of unsigned long. (build_objfile_section_table): Use size_t instead of unsigned long. (objfile_relocate): Don't relocate s->addr and s->endaddr, they're gone. (find_pc_sect_section): Use obj_section_addr and obj_section_endaddr. * symfile.c (symfile.c): Remove code that maps sections offsets in "addr" to the object's sections. * blockframe.c (find_pc_partial_function): Use obj_section_endaddr. * gcore.c (gcore_create_callback): Use obj_section_addr and obj_section_endaddr. * maint.c (print_objfile_section_info): Likewise. * printcmd.c (sym_info): Use obj_section_addr and obj_section_endaddr. * symtab.c (fixup_section): Likewise.
Diffstat (limited to 'gdb/maint.c')
-rw-r--r--gdb/maint.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/gdb/maint.c b/gdb/maint.c
index ac38930188c..62cefd9e6df 100644
--- a/gdb/maint.c
+++ b/gdb/maint.c
@@ -348,8 +348,10 @@ print_objfile_section_info (bfd *abfd,
|| match_substring (string, name)
|| match_bfd_flags (string, flags))
{
- maint_print_section_info (name, flags, asect->addr, asect->endaddr,
- asect->the_bfd_section->filepos);
+ maint_print_section_info (name, flags,
+ obj_section_addr (asect),
+ obj_section_endaddr (asect),
+ asect->the_bfd_section->filepos);
}
}