X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=gdb%2Fmips-linux-tdep.c;h=eab284da1304b36c8c1903cfc9c120d71d416620;hb=4bdb25fe6902963ca9cf91d6b2688cf888527bf8;hp=71183d732511a5da6274fa4e23184ab0b74c51bb;hpb=00431a78b28f913a9d5c912c49680e39cfd20847;p=deliverable%2Fbinutils-gdb.git diff --git a/gdb/mips-linux-tdep.c b/gdb/mips-linux-tdep.c index 71183d7325..eab284da13 100644 --- a/gdb/mips-linux-tdep.c +++ b/gdb/mips-linux-tdep.c @@ -1,6 +1,6 @@ /* Target-dependent code for GNU/Linux on MIPS processors. - Copyright (C) 2001-2018 Free Software Foundation, Inc. + Copyright (C) 2001-2019 Free Software Foundation, Inc. This file is part of GDB. @@ -38,7 +38,7 @@ #include "glibc-tdep.h" #include "linux-tdep.h" #include "xml-syscall.h" -#include "gdb_signals.h" +#include "gdbsupport/gdb_signals.h" #include "features/mips-linux.c" #include "features/mips-dsp-linux.c" @@ -537,16 +537,18 @@ mips_linux_iterate_over_regset_sections (struct gdbarch *gdbarch, { if (register_size (gdbarch, MIPS_ZERO_REGNUM) == 4) { - cb (".reg", sizeof (mips_elf_gregset_t), &mips_linux_gregset, - NULL, cb_data); - cb (".reg2", sizeof (mips64_elf_fpregset_t), &mips64_linux_fpregset, + cb (".reg", sizeof (mips_elf_gregset_t), sizeof (mips_elf_gregset_t), + &mips_linux_gregset, NULL, cb_data); + cb (".reg2", sizeof (mips64_elf_fpregset_t), + sizeof (mips64_elf_fpregset_t), &mips64_linux_fpregset, NULL, cb_data); } else { - cb (".reg", sizeof (mips64_elf_gregset_t), &mips64_linux_gregset, - NULL, cb_data); - cb (".reg2", sizeof (mips64_elf_fpregset_t), &mips64_linux_fpregset, + cb (".reg", sizeof (mips64_elf_gregset_t), sizeof (mips64_elf_gregset_t), + &mips64_linux_gregset, NULL, cb_data); + cb (".reg2", sizeof (mips64_elf_fpregset_t), + sizeof (mips64_elf_fpregset_t), &mips64_linux_fpregset, NULL, cb_data); } } @@ -560,7 +562,7 @@ mips_linux_core_read_description (struct gdbarch *gdbarch, if (! section) return NULL; - switch (bfd_section_size (abfd, section)) + switch (bfd_section_size (section)) { case sizeof (mips_elf_gregset_t): return mips_tdesc_gp32; @@ -753,9 +755,9 @@ static const struct tramp_frame mips_linux_o32_sigframe = { SIGTRAMP_FRAME, 4, { - { MIPS_INST_LI_V0_SIGRETURN, -1 }, - { MIPS_INST_SYSCALL, -1 }, - { TRAMP_SENTINEL_INSN, -1 } + { MIPS_INST_LI_V0_SIGRETURN, ULONGEST_MAX }, + { MIPS_INST_SYSCALL, ULONGEST_MAX }, + { TRAMP_SENTINEL_INSN, ULONGEST_MAX } }, mips_linux_o32_sigframe_init, mips_linux_sigframe_validate @@ -765,9 +767,9 @@ static const struct tramp_frame mips_linux_o32_rt_sigframe = { SIGTRAMP_FRAME, 4, { - { MIPS_INST_LI_V0_RT_SIGRETURN, -1 }, - { MIPS_INST_SYSCALL, -1 }, - { TRAMP_SENTINEL_INSN, -1 } }, + { MIPS_INST_LI_V0_RT_SIGRETURN, ULONGEST_MAX }, + { MIPS_INST_SYSCALL, ULONGEST_MAX }, + { TRAMP_SENTINEL_INSN, ULONGEST_MAX } }, mips_linux_o32_sigframe_init, mips_linux_sigframe_validate }; @@ -776,9 +778,9 @@ static const struct tramp_frame mips_linux_n32_rt_sigframe = { SIGTRAMP_FRAME, 4, { - { MIPS_INST_LI_V0_N32_RT_SIGRETURN, -1 }, - { MIPS_INST_SYSCALL, -1 }, - { TRAMP_SENTINEL_INSN, -1 } + { MIPS_INST_LI_V0_N32_RT_SIGRETURN, ULONGEST_MAX }, + { MIPS_INST_SYSCALL, ULONGEST_MAX }, + { TRAMP_SENTINEL_INSN, ULONGEST_MAX } }, mips_linux_n32n64_sigframe_init, mips_linux_sigframe_validate @@ -788,9 +790,9 @@ static const struct tramp_frame mips_linux_n64_rt_sigframe = { SIGTRAMP_FRAME, 4, { - { MIPS_INST_LI_V0_N64_RT_SIGRETURN, -1 }, - { MIPS_INST_SYSCALL, -1 }, - { TRAMP_SENTINEL_INSN, -1 } + { MIPS_INST_LI_V0_N64_RT_SIGRETURN, ULONGEST_MAX }, + { MIPS_INST_SYSCALL, ULONGEST_MAX }, + { TRAMP_SENTINEL_INSN, ULONGEST_MAX } }, mips_linux_n32n64_sigframe_init, mips_linux_sigframe_validate @@ -800,11 +802,11 @@ static const struct tramp_frame micromips_linux_o32_sigframe = { SIGTRAMP_FRAME, 2, { - { MICROMIPS_INST_LI_V0, -1 }, - { MIPS_NR_sigreturn, -1 }, - { MICROMIPS_INST_POOL32A, -1 }, - { MICROMIPS_INST_SYSCALL, -1 }, - { TRAMP_SENTINEL_INSN, -1 } + { MICROMIPS_INST_LI_V0, ULONGEST_MAX }, + { MIPS_NR_sigreturn, ULONGEST_MAX }, + { MICROMIPS_INST_POOL32A, ULONGEST_MAX }, + { MICROMIPS_INST_SYSCALL, ULONGEST_MAX }, + { TRAMP_SENTINEL_INSN, ULONGEST_MAX } }, mips_linux_o32_sigframe_init, micromips_linux_sigframe_validate @@ -814,11 +816,11 @@ static const struct tramp_frame micromips_linux_o32_rt_sigframe = { SIGTRAMP_FRAME, 2, { - { MICROMIPS_INST_LI_V0, -1 }, - { MIPS_NR_rt_sigreturn, -1 }, - { MICROMIPS_INST_POOL32A, -1 }, - { MICROMIPS_INST_SYSCALL, -1 }, - { TRAMP_SENTINEL_INSN, -1 } + { MICROMIPS_INST_LI_V0, ULONGEST_MAX }, + { MIPS_NR_rt_sigreturn, ULONGEST_MAX }, + { MICROMIPS_INST_POOL32A, ULONGEST_MAX }, + { MICROMIPS_INST_SYSCALL, ULONGEST_MAX }, + { TRAMP_SENTINEL_INSN, ULONGEST_MAX } }, mips_linux_o32_sigframe_init, micromips_linux_sigframe_validate @@ -828,11 +830,11 @@ static const struct tramp_frame micromips_linux_n32_rt_sigframe = { SIGTRAMP_FRAME, 2, { - { MICROMIPS_INST_LI_V0, -1 }, - { MIPS_NR_N32_rt_sigreturn, -1 }, - { MICROMIPS_INST_POOL32A, -1 }, - { MICROMIPS_INST_SYSCALL, -1 }, - { TRAMP_SENTINEL_INSN, -1 } + { MICROMIPS_INST_LI_V0, ULONGEST_MAX }, + { MIPS_NR_N32_rt_sigreturn, ULONGEST_MAX }, + { MICROMIPS_INST_POOL32A, ULONGEST_MAX }, + { MICROMIPS_INST_SYSCALL, ULONGEST_MAX }, + { TRAMP_SENTINEL_INSN, ULONGEST_MAX } }, mips_linux_n32n64_sigframe_init, micromips_linux_sigframe_validate @@ -842,11 +844,11 @@ static const struct tramp_frame micromips_linux_n64_rt_sigframe = { SIGTRAMP_FRAME, 2, { - { MICROMIPS_INST_LI_V0, -1 }, - { MIPS_NR_N64_rt_sigreturn, -1 }, - { MICROMIPS_INST_POOL32A, -1 }, - { MICROMIPS_INST_SYSCALL, -1 }, - { TRAMP_SENTINEL_INSN, -1 } + { MICROMIPS_INST_LI_V0, ULONGEST_MAX }, + { MIPS_NR_N64_rt_sigreturn, ULONGEST_MAX }, + { MICROMIPS_INST_POOL32A, ULONGEST_MAX }, + { MICROMIPS_INST_SYSCALL, ULONGEST_MAX }, + { TRAMP_SENTINEL_INSN, ULONGEST_MAX } }, mips_linux_n32n64_sigframe_init, micromips_linux_sigframe_validate @@ -1435,7 +1437,7 @@ mips_gdb_signal_to_target (struct gdbarch *gdbarch, } /* Translate signals based on MIPS signal values. - Adapted from gdb/common/signals.c. */ + Adapted from gdb/gdbsupport/signals.c. */ static enum gdb_signal mips_gdb_signal_from_target (struct gdbarch *gdbarch, int signal)