diff options
author | Alan Modra <amodra@gmail.com> | 2003-10-11 12:40:38 +0000 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2003-10-11 12:40:38 +0000 |
commit | b98ed7bea67d297b6f60ce6912bfababf63ae911 (patch) | |
tree | 71e0819a8e63c03fa0403976db5c984f58b8210c /gdb/hppa-tdep.c | |
parent | c3fcc31e0e993c81cb703dd1f81979af75f2b6a1 (diff) | |
download | gdb-b98ed7bea67d297b6f60ce6912bfababf63ae911.zip gdb-b98ed7bea67d297b6f60ce6912bfababf63ae911.tar.gz gdb-b98ed7bea67d297b6f60ce6912bfababf63ae911.tar.bz2 |
* 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.
Diffstat (limited to 'gdb/hppa-tdep.c')
-rw-r--r-- | gdb/hppa-tdep.c | 5 |
1 files changed, 3 insertions, 2 deletions
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 |