diff options
author | Andrew Cagney <cagney@redhat.com> | 2004-07-20 15:11:37 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 2004-07-20 15:11:37 +0000 |
commit | 2cd8546d1321946294f6c89cdfb250a7de50f99d (patch) | |
tree | 77cf2b4bed624e2cc61b1f00caa2cccb7f6b39e7 /gdb/mips-linux-tdep.c | |
parent | e12904d27fcfac19123e57e6cb606045e7e829b9 (diff) | |
download | gdb-2cd8546d1321946294f6c89cdfb250a7de50f99d.zip gdb-2cd8546d1321946294f6c89cdfb250a7de50f99d.tar.gz gdb-2cd8546d1321946294f6c89cdfb250a7de50f99d.tar.bz2 |
2004-07-20 Andrew Cagney <cagney@gnu.org>
* tramp-frame.h (struct tramp_frame): Change "insn" to a struct
containing both bytes and mask. Add "frame_type".
* tramp-frame.c (tramp_frame_start): Update.
(tramp_frame_prepend_unwinder): Update.
* mips-linux-tdep.c (mips_linux_o32_sigframe)
(mips_linux_o32_rt_sigframe, mips_linux_n32_rt_sigframe)
(mips_linux_n64_rt_sigframe): Update. Make "static const".
* ppcnbsd-tdep.c (tramp_frame ppcnbsd_sigtramp): Update.
Diffstat (limited to 'gdb/mips-linux-tdep.c')
-rw-r--r-- | gdb/mips-linux-tdep.c | 29 |
1 files changed, 22 insertions, 7 deletions
diff --git a/gdb/mips-linux-tdep.c b/gdb/mips-linux-tdep.c index 76bbef2..a13fa36 100644 --- a/gdb/mips-linux-tdep.c +++ b/gdb/mips-linux-tdep.c @@ -830,25 +830,40 @@ static void mips_linux_n32n64_sigframe_init (const struct tramp_frame *self, #define MIPS_INST_LI_V0_N32_RT_SIGRETURN 0x24020000 + MIPS_NR_N32_rt_sigreturn #define MIPS_INST_SYSCALL 0x0000000c -struct tramp_frame mips_linux_o32_sigframe = { +static const struct tramp_frame mips_linux_o32_sigframe = { + SIGTRAMP_FRAME, 4, - { MIPS_INST_LI_V0_SIGRETURN, MIPS_INST_SYSCALL, TRAMP_SENTINEL_INSN }, + { + { MIPS_INST_LI_V0_SIGRETURN, -1 }, + { MIPS_INST_SYSCALL, -1 }, + { TRAMP_SENTINEL_INSN, -1 } + }, mips_linux_o32_sigframe_init }; -struct tramp_frame mips_linux_o32_rt_sigframe = { +static const struct tramp_frame mips_linux_o32_rt_sigframe = { + SIGTRAMP_FRAME, 4, - { MIPS_INST_LI_V0_RT_SIGRETURN, MIPS_INST_SYSCALL, TRAMP_SENTINEL_INSN }, + { + { MIPS_INST_LI_V0_RT_SIGRETURN, -1 }, + { MIPS_INST_SYSCALL, -1 }, + { TRAMP_SENTINEL_INSN, -1 } }, mips_linux_o32_sigframe_init }; -struct tramp_frame mips_linux_n32_rt_sigframe = { +static const struct tramp_frame mips_linux_n32_rt_sigframe = { + SIGTRAMP_FRAME, 4, - { MIPS_INST_LI_V0_N32_RT_SIGRETURN, MIPS_INST_SYSCALL, TRAMP_SENTINEL_INSN }, + { + { MIPS_INST_LI_V0_N32_RT_SIGRETURN, -1 }, + { MIPS_INST_SYSCALL, -1 }, + { TRAMP_SENTINEL_INSN, -1 } + }, mips_linux_n32n64_sigframe_init }; -struct tramp_frame mips_linux_n64_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_linux_n32n64_sigframe_init |