diff options
author | Pedro Alves <palves@redhat.com> | 2008-08-20 11:21:44 +0000 |
---|---|---|
committer | Pedro Alves <palves@redhat.com> | 2008-08-20 11:21:44 +0000 |
commit | f1f6aadf8c572a21149a59d65adc49f2df5feeb6 (patch) | |
tree | 9b51311b5d16685c2c5201142c196a33a7c157b2 /gdb/blockframe.c | |
parent | b365f677216c4c4c40877340b1dcbc2926f60671 (diff) | |
download | gdb-f1f6aadf8c572a21149a59d65adc49f2df5feeb6.zip gdb-f1f6aadf8c572a21149a59d65adc49f2df5feeb6.tar.gz gdb-f1f6aadf8c572a21149a59d65adc49f2df5feeb6.tar.bz2 |
* 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/blockframe.c')
-rw-r--r-- | gdb/blockframe.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/blockframe.c b/gdb/blockframe.c index 289e20c..44d2a2a 100644 --- a/gdb/blockframe.c +++ b/gdb/blockframe.c @@ -299,12 +299,12 @@ find_pc_partial_function (CORE_ADDR pc, char **name, CORE_ADDR *address, } if (DEPRECATED_SYMBOL_NAME (msymbol + i) != NULL - && SYMBOL_VALUE_ADDRESS (msymbol + i) < osect->endaddr) + && SYMBOL_VALUE_ADDRESS (msymbol + i) < obj_section_endaddr (osect)) cache_pc_function_high = SYMBOL_VALUE_ADDRESS (msymbol + i); else /* We got the start address from the last msymbol in the objfile. So the end address is the end of the section. */ - cache_pc_function_high = osect->endaddr; + cache_pc_function_high = obj_section_endaddr (osect); } return_cached_value: |