Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Kevin Buettner <kevinb@redhat.com>
To: gdb-patches@sources.redhat.com
Subject: [PATCH] 64-bit support for Irix 6
Date: Wed, 31 Jul 2002 11:23:00 -0000	[thread overview]
Message-ID: <1020731172757.ZM21630@localhost.localdomain> (raw)

I've just committed the change below.

This change (along with some other changes coming soon) allow us to
debug 64-bit applications on Irix 6.X.  I've verified that this change
does not affect our ability to debug o32 and n32 applications.

	* config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
	(REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.

Index: config/mips/tm-irix6.h
===================================================================
RCS file: /cvs/src/src/gdb/config/mips/tm-irix6.h,v
retrieving revision 1.2
diff -u -p -r1.2 tm-irix6.h
--- config/mips/tm-irix6.h	11 Jun 2002 17:51:56 -0000	1.2
+++ config/mips/tm-irix6.h	31 Jul 2002 17:04:03 -0000
@@ -21,6 +21,9 @@
 
 #include "mips/tm-bigmips.h"
 
+#undef MIPS_REGSIZE
+#define MIPS_REGSIZE 8
+
 /* SGI's assembler doesn't grok dollar signs in identifiers.
    So we use dots instead.  This item must be coordinated with G++. */
 #undef CPLUS_MARKER
@@ -89,11 +92,12 @@
       32 * sizeof(double) + ((N) - 32) * MIPS_REGSIZE)
 
 #undef  REGISTER_VIRTUAL_TYPE
+/* define 8 byte register type */
 #define REGISTER_VIRTUAL_TYPE(N) \
 	(((N) >= FP0_REGNUM && (N) < FP0_REGNUM+32) ? builtin_type_double \
 	 : ((N) == 32 /*SR*/) ? builtin_type_uint32 \
 	 : ((N) >= 70 && (N) <= 89) ? builtin_type_uint32 \
-	 : builtin_type_int)
+	 : builtin_type_long_long)
 
 /* Force N32 ABI as the default. */
 #define MIPS_DEFAULT_ABI MIPS_ABI_N32


             reply	other threads:[~2002-07-31 17:28 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-07-31 11:23 Kevin Buettner [this message]
2002-08-01  8:11 ` Andrew Cagney
2002-08-01  9:53   ` Kevin Buettner
2002-08-01 10:42     ` Andrew Cagney
2002-08-01 13:08       ` Kevin Buettner
2002-08-01 13:28         ` Andrew Cagney
2002-08-01 16:17           ` Kevin Buettner
2002-08-01 13:54   ` Michael Snyder
2002-08-01 14:25     ` Andrew Cagney
2002-08-01 14:47       ` Michael Snyder
2002-08-01 16:38         ` 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=1020731172757.ZM21630@localhost.localdomain \
    --to=kevinb@redhat.com \
    --cc=gdb-patches@sources.redhat.com \
    /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