* MAINTAINERS (Write After Approval): Add myself.
[deliverable/binutils-gdb.git] / gdb / mips-linux-tdep.c
index a9948d65df3a17c7d51aae1edc158da278d3fb3b..3da7522b79ce78e16152d5702c6b5cb34e049838 100644 (file)
@@ -1,6 +1,6 @@
 /* Target-dependent code for GNU/Linux on MIPS processors.
 
-   Copyright (C) 2001, 2002, 2004, 2005, 2006
+   Copyright (C) 2001, 2002, 2004, 2005, 2006, 2007
    Free Software Foundation, Inc.
 
    This file is part of GDB.
@@ -34,6 +34,7 @@
 #include "tramp-frame.h"
 #include "floatformat.h"
 #include "solib.h"
+#include "symtab.h"
 #include "mips-linux-tdep.h"
 
 /* Figure out where the longjmp will land.
@@ -798,9 +799,11 @@ static const struct tramp_frame mips_linux_n32_rt_sigframe = {
 static const struct tramp_frame mips_linux_n64_rt_sigframe = {
   SIGTRAMP_FRAME,
   4,
-  { MIPS_INST_LI_V0_N64_RT_SIGRETURN,
-    MIPS_INST_SYSCALL,
-    TRAMP_SENTINEL_INSN },
+  {
+    { MIPS_INST_LI_V0_N64_RT_SIGRETURN, -1 },
+    { MIPS_INST_SYSCALL, -1 },
+    { TRAMP_SENTINEL_INSN, -1 }
+  },
   mips_linux_n32n64_sigframe_init
 };
 
@@ -1151,10 +1154,7 @@ mips_linux_init_abi (struct gdbarch_info info,
           the same 128-bit IEEE floating point format that IA-64 uses,
           except that the quiet/signalling NaN bit is reversed (GDB
           does not distinguish between quiet and signalling NaNs).  */
-       if (gdbarch_byte_order (gdbarch) == BFD_ENDIAN_BIG)
-         set_gdbarch_long_double_format (gdbarch, &floatformat_ia64_quad_big);
-       else
-         set_gdbarch_long_double_format (gdbarch, &floatformat_ia64_quad_little);
+       set_gdbarch_long_double_format (gdbarch, floatformats_ia64_quad);
        tramp_frame_prepend_unwinder (gdbarch, &mips_linux_n32_rt_sigframe);
        break;
       case MIPS_ABI_N64:
@@ -1168,10 +1168,7 @@ mips_linux_init_abi (struct gdbarch_info info,
           the same 128-bit IEEE floating point format that IA-64 uses,
           except that the quiet/signalling NaN bit is reversed (GDB
           does not distinguish between quiet and signalling NaNs).  */
-       if (gdbarch_byte_order (gdbarch) == BFD_ENDIAN_BIG)
-         set_gdbarch_long_double_format (gdbarch, &floatformat_ia64_quad_big);
-       else
-         set_gdbarch_long_double_format (gdbarch, &floatformat_ia64_quad_little);
+       set_gdbarch_long_double_format (gdbarch, floatformats_ia64_quad);
        tramp_frame_prepend_unwinder (gdbarch, &mips_linux_n64_rt_sigframe);
        break;
       default:
@@ -1179,6 +1176,7 @@ mips_linux_init_abi (struct gdbarch_info info,
        break;
     }
 
+  set_gdbarch_skip_trampoline_code (gdbarch, find_solib_trampoline_target);
   set_gdbarch_skip_solib_resolver (gdbarch, mips_linux_skip_resolver);
 
   set_gdbarch_software_single_step (gdbarch, mips_software_single_step);
This page took 0.023652 seconds and 4 git commands to generate.