* corelow.c (core_close): Don't hardcode the core's pid.
[deliverable/binutils-gdb.git] / gdb / hppabsd-tdep.c
index f5a31cf10c7e2e31b15c0ddc5dad5f52698acdf1..2954a68e588e5d6ea69c2d10108020b4973e413a 100644 (file)
@@ -1,6 +1,7 @@
 /* Target-dependent code for HP PA-RISC BSD's.
 
-   Copyright (C) 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
+   Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009
+   Free Software Foundation, Inc.
 
    This file is part of GDB.
 
@@ -28,7 +29,7 @@
 #include "solib-svr4.h"
 
 CORE_ADDR
-hppabsd_find_global_pointer (struct value *function)
+hppabsd_find_global_pointer (struct gdbarch *gdbarch, struct value *function)
 {
   CORE_ADDR faddr = value_as_address (function);
   struct obj_section *faddr_sec;
@@ -61,9 +62,10 @@ hppabsd_find_global_pointer (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;
This page took 0.026621 seconds and 4 git commands to generate.