]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
* hppa-tdep.c (hppa_in_solib_call_trampoline): Don't refer directly to
authorAlan Modra <amodra@gmail.com>
Sat, 11 Oct 2003 12:40:38 +0000 (12:40 +0000)
committerAlan Modra <amodra@gmail.com>
Sat, 11 Oct 2003 12:40:38 +0000 (12:40 +0000)
_cooked_size and vma;  Use bfd_section_size and bfd_get_section_vma.
Correct test for pc within section.

gdb/ChangeLog
gdb/hppa-tdep.c

index baffd830e339212e9bd76bed4da100f033fb489f..00470161cd1f30f02eaa360c5833bac404237c2f 100644 (file)
@@ -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.
index 0a70d89c037888877841e05edc704f8d0a35775a..e5a18909f141a8601e14c2fe2e487be53b951f97 100644 (file)
@@ -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