From: Alan Modra Date: Sat, 11 Oct 2003 12:40:38 +0000 (+0000) Subject: * hppa-tdep.c (hppa_in_solib_call_trampoline): Don't refer directly to X-Git-Tag: cagney_bigcore-20040122-branchpoint~1222 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b98ed7bea67d297b6f60ce6912bfababf63ae911;p=external%2Fbinutils.git * 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. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index baffd83..0047016 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,9 @@ +2003-10-11 Alan Modra + + * 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 * gdbarch.sh: Remove trailing whitepsace from comments. diff --git a/gdb/hppa-tdep.c b/gdb/hppa-tdep.c index 0a70d89..e5a1890 100644 --- a/gdb/hppa-tdep.c +++ b/gdb/hppa-tdep.c @@ -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