[gdb/testsuite] Rewrite gdb_test_lines
[deliverable/binutils-gdb.git] / gdb / mips-linux-tdep.c
index 3ffd53db9ead82b081a8ec64d3556315eb395053..1ceed5250fe6f2f01aa542e7a2fb646e207918dd 100644 (file)
@@ -1,6 +1,6 @@
 /* Target-dependent code for GNU/Linux on MIPS processors.
 
-   Copyright (C) 2001-2020 Free Software Foundation, Inc.
+   Copyright (C) 2001-2021 Free Software Foundation, Inc.
 
    This file is part of GDB.
 
@@ -866,48 +866,48 @@ static const struct tramp_frame micromips_linux_n64_rt_sigframe = {
    Pre-2.6.12 sigcontext:
 
    struct sigcontext {
-        unsigned int       sc_regmask;          [Unused]
-        unsigned int       sc_status;
-        unsigned long long sc_pc;
-        unsigned long long sc_regs[32];
-        unsigned long long sc_fpregs[32];
-        unsigned int       sc_ownedfp;
-        unsigned int       sc_fpc_csr;
-        unsigned int       sc_fpc_eir;          [Unused]
-        unsigned int       sc_used_math;
-        unsigned int       sc_ssflags;          [Unused]
+       unsigned int       sc_regmask;          [Unused]
+       unsigned int       sc_status;
+       unsigned long long sc_pc;
+       unsigned long long sc_regs[32];
+       unsigned long long sc_fpregs[32];
+       unsigned int       sc_ownedfp;
+       unsigned int       sc_fpc_csr;
+       unsigned int       sc_fpc_eir;          [Unused]
+       unsigned int       sc_used_math;
+       unsigned int       sc_ssflags;          [Unused]
        [Alignment hole of four bytes]
-        unsigned long long sc_mdhi;
-        unsigned long long sc_mdlo;
+       unsigned long long sc_mdhi;
+       unsigned long long sc_mdlo;
 
-        unsigned int       sc_cause;            [Unused]
-        unsigned int       sc_badvaddr;         [Unused]
+       unsigned int       sc_cause;            [Unused]
+       unsigned int       sc_badvaddr;         [Unused]
 
-        unsigned long      sc_sigset[4];        [kernel's sigset_t]
+       unsigned long      sc_sigset[4];        [kernel's sigset_t]
    };
 
    Post-2.6.12 sigcontext (SmartMIPS/DSP support added):
 
    struct sigcontext {
-        unsigned int       sc_regmask;          [Unused]
-        unsigned int       sc_status;           [Unused]
-        unsigned long long sc_pc;
-        unsigned long long sc_regs[32];
-        unsigned long long sc_fpregs[32];
-        unsigned int       sc_acx;
-        unsigned int       sc_fpc_csr;
-        unsigned int       sc_fpc_eir;          [Unused]
-        unsigned int       sc_used_math;
-        unsigned int       sc_dsp;
+       unsigned int       sc_regmask;          [Unused]
+       unsigned int       sc_status;           [Unused]
+       unsigned long long sc_pc;
+       unsigned long long sc_regs[32];
+       unsigned long long sc_fpregs[32];
+       unsigned int       sc_acx;
+       unsigned int       sc_fpc_csr;
+       unsigned int       sc_fpc_eir;          [Unused]
+       unsigned int       sc_used_math;
+       unsigned int       sc_dsp;
        [Alignment hole of four bytes]
-        unsigned long long sc_mdhi;
-        unsigned long long sc_mdlo;
-        unsigned long      sc_hi1;
-        unsigned long      sc_lo1;
-        unsigned long      sc_hi2;
-        unsigned long      sc_lo2;
-        unsigned long      sc_hi3;
-        unsigned long      sc_lo3;
+       unsigned long long sc_mdhi;
+       unsigned long long sc_mdlo;
+       unsigned long      sc_hi1;
+       unsigned long      sc_lo1;
+       unsigned long      sc_hi2;
+       unsigned long      sc_lo2;
+       unsigned long      sc_hi3;
+       unsigned long      sc_lo3;
    };
 
    The RT signal frames look like this:
@@ -1505,7 +1505,7 @@ mips_gdb_signal_from_target (struct gdbarch *gdbarch, int signal)
   if (signal >= MIPS_LINUX_SIGRTMIN && signal <= MIPS_LINUX_SIGRTMAX)
     {
       /* GDB_SIGNAL_REALTIME values are not contiguous, map parts of
-         the MIPS block to the respective GDB_SIGNAL_REALTIME blocks.  */
+        the MIPS block to the respective GDB_SIGNAL_REALTIME blocks.  */
       int offset = signal - MIPS_LINUX_SIGRTMIN;
 
       if (offset == 0)
@@ -1531,7 +1531,7 @@ mips_linux_init_abi (struct gdbarch_info info,
   enum mips_abi abi = mips_abi (gdbarch);
   struct tdesc_arch_data *tdesc_data = info.tdesc_data;
 
-  linux_init_abi (info, gdbarch);
+  linux_init_abi (info, gdbarch, 0);
 
   /* Get the syscall number from the arch's register.  */
   set_gdbarch_get_syscall_number (gdbarch, mips_linux_get_syscall_number);
This page took 0.02568 seconds and 4 git commands to generate.