From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18527 invoked by alias); 9 May 2002 21:43:38 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 18464 invoked from network); 9 May 2002 21:43:30 -0000 Received: from unknown (HELO beta.dmz-eu.st.com) (164.129.1.35) by sources.redhat.com with SMTP; 9 May 2002 21:43:30 -0000 Received: from zeta.dmz-eu.st.com (zeta.dmz-eu.st.com [164.129.230.9]) by beta.dmz-eu.st.com (STMicroelectronics) with SMTP id 40B384D96; Thu, 9 May 2002 21:43:29 +0000 (GMT) Received: by zeta.dmz-eu.st.com (STMicroelectronics, from userid 0) id 0C537611A; Thu, 9 May 2002 21:43:29 +0000 (GMT) Received: from thistle.bri.st.com (localhost [127.0.0.1]) by zeta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 8BF001845; Thu, 9 May 2002 21:43:27 +0000 (GMT) Received: from [164.129.8.14] (helo=masterwort) by thistle.bristol.st.com with esmtp (Exim 3.03 #5) id 175vh8-0001a0-00; Thu, 09 May 2002 22:43:26 +0100 Received: from [164.129.14.84] (helo=st.com) by masterwort with asmtp (Exim 3.22 #1) id 175vh8-0000Yh-00; Thu, 09 May 2002 22:43:26 +0100 Message-ID: <3CDAEDA4.3DE4A2D5@st.com> Date: Thu, 09 May 2002 14:43:00 -0000 From: Joern Rennecke Organization: SuperH UK Ltd. X-Accept-Language: en MIME-Version: 1.0 To: ac131313@cygnus.com, binutils@sources.redhat.com Cc: aoliva@redhat.com, ezannoni@redhat.com, gcc@gcc.gnu.org, gdb@sources.redhat.com, bje@redhat.com Subject: Re: SH5 compact register numbering in gcc -> gdb interface - include/elf/sh.h ? References: <3CCED903.294513BE@st.com> <15568.36275.110744.510692@localhost.redhat.com> <3CD12BF8.7E1650C1@st.com> <3CD7EB51.7816DD1@st.com> <3CD803BC.5060900@cygnus.com> <3CD823D1.FC1E3717@st.com> <3CD85192.7020100@cygnus.com> Content-Type: multipart/mixed; boundary="------------1B513A9157CBFF5998DE2579" X-SW-Source: 2002-05/txt/msg00089.txt.bz2 This is a multi-part message in MIME format. --------------1B513A9157CBFF5998DE2579 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Content-length: 592 To give gcc and gdb a common interface, it is best put into a header file that but gdb/sh-tdep and gcc/config/sh/sh.h (can) include. I thought of putting it into include/elg/sh.h, since elf is now the predominant object format for SH gcc. Or should we start something like an include/dwarf directory? But then, it's not strictly dwarf either, since these register numbers are also used for stabs debugging info (in the SH1..SH4 coff toolchain, or if you ask specifically for stabs.) -- -------------------------- SuperH 2430 Aztec West / Almondsbury / BRISTOL / BS32 4AQ T:+44 1454 462330 --------------1B513A9157CBFF5998DE2579 Content-Type: text/plain; charset=us-ascii; name="sh-debug" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="sh-debug" Content-length: 1014 *** ../include/elf/sh.h-feb8 Fri Feb 8 05:05:58 2002 --- ../include/elf/sh.h Thu May 9 22:22:18 2002 *************** START_RELOC_NUMBERS (elf_sh_reloc_type) *** 218,221 **** --- 218,247 ---- RELOC_NUMBER (R_SH_64_PCREL, 255) END_RELOC_NUMBERS (R_SH_max) + enum + { + SH_DEBUG_INFO_R0 = 0, + SH_DEBUG_INFO_PR = 17, + SH_DEBUG_INFO_GBR = 18, + SH_DEBUG_INFO_MACH_BIG = 20, SH_DEBUG_INFO_MACL, SH_DEBUG_INFO_MACH_LITTLE, + SH_DEBUG_INFO_FPUL = 23, + SH_DEBUG_INFO_FPSCR = 24, + SH_DEBUG_INFO_FR0 = 25, + SH_DEBUG_INFO_XD0 = 87 + } + + enum + { + SH64_DEBUG_INFO_R0 = 0, + SH64_DEBUG_INFO_TR0 = 68, + SH64_DEBUG_INFO_FR0 = 77, + SH64_DEBUG_INFO_T_C = 19, + SH64_DEBUG_INFO_XF0_C = SH64_DEBUG_INFO_FR0 + 16, + SH64_DEBUG_INFO_FPUL_C = SH64_DEBUG_INFO_FR0 + 32, + SH64_DEBUG_INFO_R0_C = 141, + SH64_DEBUG_INFO_GBR_C = 157, + SH64_DEBUG_INFO_MACH_C_BIG, SH64_DEBUG_INFO_MACL_C, + SH64_DEBUG_INFO_MACH_C_LITTLE, + SH64_DEBUG_INFO_PR_C, SH_DEBUG_INFO_FPSCR_C + }; #endif --------------1B513A9157CBFF5998DE2579--