* arm-tdep.c (arm_pc_is_thumb): Use obj_section_addr.

* hppa-hpux-tdep.c (hppa_hpux_find_dummy_bpaddr): Likewise.
	* hppa-linux-tdep.c (hppa_linux_find_global_pointer): Use
	obj_section_addr and obj_section_endaddr.
	* hppa-tdep.c (hppa64_convert_code_addr_to_fptr): Likewise.
	* hppabsd-tdep.c (hppabsd_find_global_pointer): Likewise.
	* ia64-tdep.c (ia64_find_global_pointer): Likewise.
	(find_extant_func_descr): Likewise.
	* solib-frv.c (frv_relocate_main_executable): Use
	obj_section_addr.
	* xstormy16-tdep.c (xstormy16_find_jmp_table_entry): Use
	obj_section_addr and obj_section_endaddr.
This commit is contained in:
Pedro Alves
2008-08-21 13:19:18 +00:00
parent 2b60860a4c
commit aded6f54f0
9 changed files with 50 additions and 22 deletions

View File

@@ -3095,10 +3095,12 @@ ia64_find_global_pointer (CORE_ADDR faddr)
if (osect < faddr_sect->objfile->sections_end)
{
CORE_ADDR addr;
CORE_ADDR addr, endaddr;
addr = osect->addr;
while (addr < osect->endaddr)
addr = obj_section_addr (osect);
endaddr = obj_section_endaddr (osect);
while (addr < endaddr)
{
int status;
LONGEST tag;
@@ -3156,10 +3158,12 @@ find_extant_func_descr (CORE_ADDR faddr)
if (osect < faddr_sect->objfile->sections_end)
{
CORE_ADDR addr;
CORE_ADDR addr, endaddr;
addr = osect->addr;
while (addr < osect->endaddr)
addr = obj_section_addr (osect);
endaddr = obj_section_endaddr (osect);
while (addr < endaddr)
{
int status;
LONGEST faddr2;