From: Andrew Cagney <cagney@gnu.org>
To: Mark Kettenis <kettenis@gnu.org>
Cc: gdb-patches@sources.redhat.com
Subject: Re: [PATCH/RFA] Add some constants in mips-tdep.h
Date: Tue, 26 Oct 2004 00:41:00 -0000 [thread overview]
Message-ID: <417D9CEA.2090104@gnu.org> (raw)
In-Reply-To: <200410241525.i9OFPj2r027411@elgar.sibelius.xs4all.nl>
Mark Kettenis wrote:
> Date: Sun, 24 Oct 2004 17:18:59 +0200 (CEST)
> From: mark Kettenis <kettenis@gnu.org>
>
> Hi Andrew,
>
> This adds some symbolic constants to mips-tdep.h that I'd like to use
> to implement OpenBSD/mips64 signal trampoline support.
>
> OK?
>
> Argh! I shouldn't make any last-minute changes just to make it easier
> to add a proper ChangeLog entry.
M'kay.
> Here's a better patch. It even compiler ;-).
>
> Index: ChangeLog
> from Mark Kettenis <kettenis@gnu.org>
>
> * mips-tdep.h: Add MIPS_ZERO_REGNUM, MIPS_AT_REGNUM and
> MIPS_RA_REGNUM to enum with register numbers.
> (enum mips_insn_size): New enum.
>
> Index: mips-tdep.h
> ===================================================================
> RCS file: /cvs/src/src/gdb/mips-tdep.h,v
> retrieving revision 1.8
> diff -u -p -r1.8 mips-tdep.h
> --- mips-tdep.h 22 Jun 2004 00:01:04 -0000 1.8
> +++ mips-tdep.h 24 Oct 2004 15:22:52 -0000
> @@ -61,8 +61,12 @@ struct mips_regnum
> };
> extern const struct mips_regnum *mips_regnum (struct gdbarch *gdbarch);
>
> -enum {
> +enum
> +{
> + MIPS_ZERO_REGNUM = 0,
> + MIPS_AT_REGNUM = 1,
> MIPS_SP_REGNUM = 29,
> + MIPS_RA_REGNUM = 31,
> MIPS_EMBED_LO_REGNUM = 33,
> MIPS_EMBED_HI_REGNUM = 34,
> MIPS_EMBED_BADVADDR_REGNUM = 35,
> @@ -74,5 +78,11 @@ enum {
> /* Defined in mips-tdep.c and used in remote-mips.c */
> extern void deprecated_mips_set_processor_regs_hack (void);
>
> +/* Instruction sizes. */
> +enum mips_insn_size
> +{
> + MIPS16_INSN_SIZE = 2,
> + MIPS32_INSN_SIZE = 4
> +};
>
> #endif /* MIPS_TDEP_H */
>
next prev parent reply other threads:[~2004-10-26 0:41 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-10-24 15:19 mark Kettenis
2004-10-24 15:25 ` Mark Kettenis
2004-10-26 0:41 ` Andrew Cagney [this message]
2004-10-26 19:40 ` Mark Kettenis
2004-10-27 18:54 ` Andrew Cagney
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=417D9CEA.2090104@gnu.org \
--to=cagney@gnu.org \
--cc=gdb-patches@sources.redhat.com \
--cc=kettenis@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox