From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15955 invoked by alias); 24 Oct 2004 15:25:50 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 15935 invoked from network); 24 Oct 2004 15:25:49 -0000 Received: from unknown (HELO walton.sibelius.xs4all.nl) (82.92.89.47) by sourceware.org with SMTP; 24 Oct 2004 15:25:49 -0000 Received: from elgar.sibelius.xs4all.nl (elgar.sibelius.xs4all.nl [192.168.0.2]) by walton.sibelius.xs4all.nl (8.13.0/8.13.0) with ESMTP id i9OFPjaK002548; Sun, 24 Oct 2004 17:25:46 +0200 (CEST) Received: from elgar.sibelius.xs4all.nl (localhost [127.0.0.1]) by elgar.sibelius.xs4all.nl (8.12.6p3/8.12.6) with ESMTP id i9OFPjAj027414; Sun, 24 Oct 2004 17:25:45 +0200 (CEST) (envelope-from kettenis@elgar.sibelius.xs4all.nl) Received: (from kettenis@localhost) by elgar.sibelius.xs4all.nl (8.12.6p3/8.12.6/Submit) id i9OFPj2r027411; Sun, 24 Oct 2004 17:25:45 +0200 (CEST) Date: Sun, 24 Oct 2004 15:25:00 -0000 Message-Id: <200410241525.i9OFPj2r027411@elgar.sibelius.xs4all.nl> From: Mark Kettenis To: cagney@gnu.org, gdb-patches@sources.redhat.com In-reply-to: <200410241518.i9OFIx4t027387@elgar.sibelius.xs4all.nl> (message from mark Kettenis on Sun, 24 Oct 2004 17:18:59 +0200 (CEST)) Subject: Re: [PATCH/RFA] Add some constants in mips-tdep.h References: <200410241518.i9OFIx4t027387@elgar.sibelius.xs4all.nl> X-SW-Source: 2004-10/txt/msg00391.txt.bz2 Date: Sun, 24 Oct 2004 17:18:59 +0200 (CEST) From: mark Kettenis 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. Here's a better patch. It even compiler ;-). Index: ChangeLog from Mark Kettenis * 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 */