From b98ed7bea67d297b6f60ce6912bfababf63ae911 Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Sat, 11 Oct 2003 12:40:38 +0000 Subject: [PATCH] * 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. --- gdb/ChangeLog | 6 ++++++ gdb/hppa-tdep.c | 5 +++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index baffd830e3..00470161cd 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 0a70d89c03..e5a18909f1 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