* hppa-tdep.c (hppa_in_solib_call_trampoline): Don't refer directly to
_cooked_size and vma; Use bfd_section_size and bfd_get_section_vma. Correct test for pc within section.
This commit is contained in:
parent
c3fcc31e0e
commit
b98ed7bea6
@ -1,3 +1,9 @@
|
||||
2003-10-11 Alan Modra <amodra@bigpond.net.au>
|
||||
|
||||
* hppa-tdep.c (hppa_in_solib_call_trampoline): Don't refer directly to
|
||||
_cooked_size and vma; Use bfd_section_size and bfd_get_section_vma.
|
||||
Correct test for pc within section.
|
||||
|
||||
2003-10-11 Mark Kettenis <kettenis@gnu.org>
|
||||
|
||||
* gdbarch.sh: Remove trailing whitepsace from comments.
|
||||
|
@ -3095,8 +3095,9 @@ hppa_in_solib_call_trampoline (CORE_ADDR pc, char *name)
|
||||
|
||||
sec = SYMBOL_BFD_SECTION (minsym);
|
||||
|
||||
if (sec->vma <= pc
|
||||
&& sec->vma + sec->_cooked_size < pc)
|
||||
if (bfd_get_section_vma (sec->owner, sec) <= pc
|
||||
&& pc < (bfd_get_section_vma (sec->owner, sec)
|
||||
+ bfd_section_size (sec->owner, sec)))
|
||||
return 0;
|
||||
|
||||
/* We might be in a stub. Peek at the instructions. Stubs are 3
|
||||
|
Loading…
Reference in New Issue
Block a user