Use unique_xmalloc_ptr in fixup_go_packaging
[deliverable/binutils-gdb.git] / gdb / ppc64-tdep.c
index 4b8dd3fe3fb97a47f926cc7ca80e9960038fc88f..583768ccfa7428e8077c407637eb715c79b43a91 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-2020 Free Software Foundation, Inc.
 
    This file is part of GDB.
 
@@ -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.032123 seconds and 4 git commands to generate.