From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10964 invoked by alias); 12 Jun 2006 11:07:25 -0000 Received: (qmail 10895 invoked by uid 22791); 12 Jun 2006 11:07:22 -0000 X-Spam-Check-By: sourceware.org Received: from potter.codesourcery.com (HELO mail.codesourcery.com) (65.74.133.4) by sourceware.org (qpsmtpd/0.31) with ESMTP; Mon, 12 Jun 2006 11:05:35 +0000 Received: (qmail 7118 invoked by uid 1010); 12 Jun 2006 11:05:06 -0000 From: Richard Sandiford To: fnf@specifix.com Mail-Followup-To: fnf@specifix.com,gcc-patches@gcc.gnu.org, gdb-patches@sourceware.org, richard@codesourcery.com Cc: gcc-patches@gcc.gnu.org, gdb-patches@sourceware.org Subject: Re: [RFC] Passing MIPS debug hints between gcc and gdb References: <200605101206.01433.fnf@specifix.com> <87y7x9aw12.fsf@talisman.home> <200606120611.32335.fnf@specifix.com> Date: Mon, 12 Jun 2006 11:07:00 -0000 In-Reply-To: <200606120611.32335.fnf@specifix.com> (Fred Fish's message of "Mon, 12 Jun 2006 06:11:31 -0400") Message-ID: <87irn6my72.fsf@talisman.home> User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/21.4 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2006-06/txt/msg00149.txt.bz2 Fred Fish writes: > 2006-06-12 Fred Fish > > * config/mips/mips.c (mips_file_start): Create special section > ".gcc_compiled_longXX" for o64 ABI as well as EABI. Applied. I tweaked the comment to mention o64 as well, so for the record, here's what went in. Richard Index: config/mips/mips.c =================================================================== --- config/mips/mips.c (revision 114565) +++ config/mips/mips.c (working copy) @@ -5830,8 +5830,9 @@ mips_file_start (void) /* There is no ELF header flag to distinguish long32 forms of the EABI from long64 forms. Emit a special section to help tools - such as GDB. */ - if (mips_abi == ABI_EABI) + such as GDB. Do the same for o64, which is sometimes used with + -mlong64. */ + if (mips_abi == ABI_EABI || mips_abi == ABI_O64) fprintf (asm_out_file, "\t.section .gcc_compiled_long%d\n", TARGET_LONG64 ? 64 : 32);