From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15001 invoked by alias); 21 Apr 2008 12:55:52 -0000 Received: (qmail 14992 invoked by uid 22791); 21 Apr 2008 12:55:51 -0000 X-Spam-Check-By: sourceware.org Received: from mtagate4.de.ibm.com (HELO mtagate4.de.ibm.com) (195.212.29.153) by sourceware.org (qpsmtpd/0.31) with ESMTP; Mon, 21 Apr 2008 12:55:30 +0000 Received: from d12nrmr1607.megacenter.de.ibm.com (d12nrmr1607.megacenter.de.ibm.com [9.149.167.49]) by mtagate4.de.ibm.com (8.13.8/8.13.8) with ESMTP id m3LCtRP7102710 for ; Mon, 21 Apr 2008 12:55:27 GMT Received: from d12av02.megacenter.de.ibm.com (d12av02.megacenter.de.ibm.com [9.149.165.228]) by d12nrmr1607.megacenter.de.ibm.com (8.13.8/8.13.8/NCO v8.7) with ESMTP id m3LCtQfX2699426 for ; Mon, 21 Apr 2008 14:55:27 +0200 Received: from d12av02.megacenter.de.ibm.com (loopback [127.0.0.1]) by d12av02.megacenter.de.ibm.com (8.12.11.20060308/8.13.3) with ESMTP id m3LCtQlx029559 for ; Mon, 21 Apr 2008 14:55:26 +0200 Received: from tuxmaker.boeblingen.de.ibm.com (tuxmaker.boeblingen.de.ibm.com [9.152.85.9]) by d12av02.megacenter.de.ibm.com (8.12.11.20060308/8.12.11) with SMTP id m3LCtQWp029553; Mon, 21 Apr 2008 14:55:26 +0200 Message-Id: <200804211255.m3LCtQWp029553@d12av02.megacenter.de.ibm.com> Received: by tuxmaker.boeblingen.de.ibm.com (sSMTP sendmail emulation); Mon, 21 Apr 2008 14:55:26 +0200 Subject: Re: [rfc/rft] ppc gdbserver: autodetect AltiVec and SPE To: bauerman@br.ibm.com (Thiago Jung Bauermann) Date: Mon, 21 Apr 2008 14:04:00 -0000 From: "Ulrich Weigand" Cc: drow@false.org (Daniel Jacobowitz), gdb-patches@sourceware.org In-Reply-To: <1208752523.5808.141.camel@localhost.localdomain> from "Thiago Jung Bauermann" at Apr 21, 2008 01:35:23 AM X-Mailer: ELM [version 2.5 PL2] MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2008-04/txt/msg00427.txt.bz2 Thiago Jung Bauermann wrote: > On Sun, 2008-04-20 at 10:27 -0400, Daniel Jacobowitz wrote: > > > Is such way of compiling 32-bit GDB in a ppc64 machine with 32-bit > > > default gcc not supported? Must one always use --target option to > > > configure in such case? > > > > I see. Anything is supported that we're willing to fix... The > > simplest possible fix would be to add the e500 objects. Does > > gdbserver work OK with this patch? > > Yes, it compiled fine. Thanks! Sorry for the breakage. My understanding is that building a 32-bit powerpc64-linux gdbserver was never supported, and would fail at run time because ptrace does not support accessing 64-bit inferior registers from a 32-bit debugger (at least not using the standard ptrace functions). However, with bi-arch support, I guess it now would actually work at least for debugging 32-bit inferiors. I'm wondering whether it wouldn't make sense now to drop the configure-time distinction between powerpc-linux and powerpc64-linux for gdbserver (just like there already is no such distinction for GDB itself). This would mean no matter whether you configure for powerpc-linux or for powerpc64-linux, the resulting gdbserver would always support 32-bit inferiors, and would in addition support 64-bit inferiors iff it was built as a 64-bit executable. Dan, what do you think? Bye, Ulrich -- Dr. Ulrich Weigand GNU Toolchain for Linux on System z and Cell BE Ulrich.Weigand@de.ibm.com