aboutsummaryrefslogtreecommitdiff
path: root/gdb/hppabsd-tdep.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/hppabsd-tdep.c')
-rw-r--r--gdb/hppabsd-tdep.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/gdb/hppabsd-tdep.c b/gdb/hppabsd-tdep.c
index c1d175b..d4b0e57 100644
--- a/gdb/hppabsd-tdep.c
+++ b/gdb/hppabsd-tdep.c
@@ -61,9 +61,10 @@ hppabsd_find_global_pointer (struct gdbarch *gdbarch, struct value *function)
if (sec < faddr_sec->objfile->sections_end)
{
- CORE_ADDR addr = sec->addr;
+ CORE_ADDR addr = obj_section_addr (sec);
+ CORE_ADDR endaddr = obj_section_endaddr (sec);
- while (addr < sec->endaddr)
+ while (addr < endaddr)
{
gdb_byte buf[4];
LONGEST tag;