Fix up some formatting.
[deliverable/binutils-gdb.git] / gdb / hppabsd-tdep.c
index f5a31cf10c7e2e31b15c0ddc5dad5f52698acdf1..a11243365491e45c3e883f0c46758929e4912c97 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.
 
 #include "elf/common.h"
 
 #include "hppa-tdep.h"
+#include "hppabsd-tdep.h"
 #include "solib-svr4.h"
 
-CORE_ADDR
-hppabsd_find_global_pointer (struct value *function)
+static CORE_ADDR
+hppabsd_find_global_pointer (struct gdbarch *gdbarch, struct value *function)
 {
   CORE_ADDR faddr = value_as_address (function);
   struct obj_section *faddr_sec;
@@ -61,9 +63,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.024418 seconds and 4 git commands to generate.