x86: Move x86-specific linker options to elf_linker_x86_params
[deliverable/binutils-gdb.git] / gdb / bfin-linux-tdep.c
index 9b9f3bedfb1c86c06337d317d45c3bb188cc8316..bfdc106fb67328c7b837953cf9c8e1af6c501584 100644 (file)
@@ -1,6 +1,6 @@
 /* Target-dependent code for Analog Devices Blackfin processor, for GDB.
 
-   Copyright (C) 2005-2018 Free Software Foundation, Inc.
+   Copyright (C) 2005-2019 Free Software Foundation, Inc.
 
    Contributed by Analog Devices, Inc.
 
    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
 
 #include "defs.h"
+
+/* Local non-gdb includes.  */
 #include "arch-utils.h"
+#include "bfin-tdep.h"
+#include "linux-tdep.h"
+#include "osabi.h"
 #include "regcache.h"
-#include "tramp-frame.h"
 #include "trad-frame.h"
-#include "osabi.h"
+#include "tramp-frame.h"
 #include "xml-syscall.h"
-#include "linux-tdep.h"
-#include "bfin-tdep.h"
 
 /* From <asm/sigcontext.h>.  */
 
@@ -121,16 +123,16 @@ static const struct tramp_frame bfin_linux_sigframe =
   {
     { 0x00ADE128, 0xffffffff },        /* P0 = __NR_rt_sigreturn; */
     { 0x00A0, 0xffff },                /* EXCPT 0; */
-    { TRAMP_SENTINEL_INSN, -1 },
+    { TRAMP_SENTINEL_INSN, ULONGEST_MAX },
   },
   bfin_linux_sigframe_init,
 };
 
 static LONGEST
 bfin_linux_get_syscall_number (struct gdbarch *gdbarch,
-                               ptid_t ptid)
+                              thread_info *thread)
 {
-  struct regcache *regcache = get_thread_regcache (ptid);
+  struct regcache *regcache = get_thread_regcache (thread);
   enum bfd_endian byte_order = gdbarch_byte_order (gdbarch);
   /* The content of a register.  */
   gdb_byte buf[4];
@@ -140,7 +142,7 @@ bfin_linux_get_syscall_number (struct gdbarch *gdbarch,
   /* Getting the system call number from the register.
      When dealing with Blackfin architecture, this information
      is stored at %p0 register.  */
-  regcache_cooked_read (regcache, BFIN_P0_REGNUM, buf);
+  regcache->cooked_read (BFIN_P0_REGNUM, buf);
 
   ret = extract_signed_integer (buf, 4, byte_order);
 
This page took 0.030877 seconds and 4 git commands to generate.