Automatic date update in version.in
[deliverable/binutils-gdb.git] / gdb / ppc64-tdep.c
index 4b8dd3fe3fb97a47f926cc7ca80e9960038fc88f..74873a6999e71b0516029fcfc0964b4d6825e2d7 100644 (file)
@@ -1,6 +1,6 @@
 /* Common target-dependent code for ppc64 GDB, the GNU debugger.
 
-   Copyright (C) 1986-2018 Free Software Foundation, Inc.
+   Copyright (C) 1986-2021 Free Software Foundation, Inc.
 
    This file is part of GDB.
 
@@ -506,8 +506,8 @@ ppc64_skip_trampoline_code_1 (struct frame_info *frame, CORE_ADDR pc)
        }
 
       /* The PLT descriptor will either point to the already resolved target
-         address, or else to a glink stub.  As the latter carry synthetic @plt
-         symbols, find_solib_trampoline_target should be able to resolve them.  */
+        address, or else to a glink stub.  As the latter carry synthetic @plt
+        symbols, find_solib_trampoline_target should be able to resolve them.  */
       target = find_solib_trampoline_target (frame, pc);
       return target ? target : pc;
   }
@@ -561,7 +561,7 @@ ppc64_convert_from_func_ptr_addr (struct gdbarch *gdbarch,
                                        struct target_ops *targ)
 {
   enum bfd_endian byte_order = gdbarch_byte_order (gdbarch);
-  struct target_section *s = target_section_by_addr (targ, addr);
+  const struct target_section *s = target_section_by_addr (targ, addr);
 
   /* Check if ADDR points to a function descriptor.  */
   if (s && strcmp (s->the_bfd_section->name, ".opd") == 0)
@@ -593,8 +593,8 @@ ppc64_convert_from_func_ptr_addr (struct gdbarch *gdbarch,
                                      s->the_bfd_section,
                                      &buf, addr - s->addr, 8);
       if (res != 0)
-       return extract_unsigned_integer (buf, 8, byte_order)
-               - bfd_section_vma (s->bfd, s->the_bfd_section) + s->addr;
+       return (extract_unsigned_integer (buf, 8, byte_order)
+               - bfd_section_vma (s->the_bfd_section) + s->addr);
    }
 
   return addr;
This page took 0.028904 seconds and 4 git commands to generate.