gdb/testsuite: some additional tests in gdb.tui/scroll.exp
[binutils-gdb.git] / gdb / i386-gnu-tdep.c
index 6033b986b6a3a1160df3d34edc431a9ebb1e948d..51c253d2dfe684517d870035e7af08c53622213f 100644 (file)
@@ -1,5 +1,5 @@
 /* Target-dependent code for the GNU Hurd.
-   Copyright (C) 2002-2021 Free Software Foundation, Inc.
+   Copyright (C) 2002-2022 Free Software Foundation, Inc.
 
    This file is part of GDB.
 
@@ -63,7 +63,7 @@ i386_gnu_sigtramp_start (struct frame_info *this_frame)
 
   if (!safe_frame_unwind_memory (this_frame,
                                 pc + GNU_SIGTRAMP_TAIL - GNU_SIGTRAMP_LEN,
-                                buf, GNU_SIGTRAMP_LEN))
+                                buf))
     return 0;
 
   if (memcmp (buf, gnu_sigtramp_code, GNU_SIGTRAMP_LEN) != 0)
@@ -173,7 +173,7 @@ static int i386gnu_gregset_reg_offset[] =
 static void
 i386gnu_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch)
 {
-  struct gdbarch_tdep *tdep = gdbarch_tdep (gdbarch);
+  i386_gdbarch_tdep *tdep = (i386_gdbarch_tdep *) gdbarch_tdep (gdbarch);
 
   /* GNU uses ELF.  */
   i386_elf_init_abi (info, gdbarch);