From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1283 invoked by alias); 4 Sep 2008 20:31:41 -0000 Received: (qmail 1275 invoked by uid 22791); 4 Sep 2008 20:31:41 -0000 X-Spam-Check-By: sourceware.org Received: from mtagate7.de.ibm.com (HELO mtagate7.de.ibm.com) (195.212.29.156) by sourceware.org (qpsmtpd/0.31) with ESMTP; Thu, 04 Sep 2008 20:30:58 +0000 Received: from d12nrmr1607.megacenter.de.ibm.com (d12nrmr1607.megacenter.de.ibm.com [9.149.167.49]) by mtagate7.de.ibm.com (8.13.8/8.13.8) with ESMTP id m84KTLGB175324 for ; Thu, 4 Sep 2008 20:29:21 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 v9.0) with ESMTP id m84KTLIi3408110 for ; Thu, 4 Sep 2008 22:29:21 +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 m84KTILx004945 for ; Thu, 4 Sep 2008 22:29:18 +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 m84KTIfG004941; Thu, 4 Sep 2008 22:29:18 +0200 Message-Id: <200809042029.m84KTIfG004941@d12av02.megacenter.de.ibm.com> Received: by tuxmaker.boeblingen.de.ibm.com (sSMTP sendmail emulation); Thu, 4 Sep 2008 22:29:18 +0200 Subject: Re: [rfc] Displaced stepping with wrong entry point address To: drow@false.org (Daniel Jacobowitz) Date: Thu, 04 Sep 2008 20:31:00 -0000 From: "Ulrich Weigand" Cc: gdb-patches@sourceware.org, pedro@codesourcery.com In-Reply-To: <20080904193203.GA22456@caradoc.them.org> from "Daniel Jacobowitz" at Sep 04, 2008 03:32:03 PM 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-09/txt/msg00071.txt.bz2 Daniel Jacobowitz wrote: > On Thu, Sep 04, 2008 at 09:28:06PM +0200, Ulrich Weigand wrote: > > > If SPU ever did support displaced stepping (not that this would be > > > terribly useful, but consider some other multi-architecture case), > > > would this be wrong for the SPU side code? > > > > Yes, of course -- we have different address spaces here, and we need > > to find a location within the address space of the current thread where > > to place the displaced instruction. No single address would work for > > both PowerPC and SPU code in a combined application. > > > > But I guess SPU could always install its own callback to handle those > > special cases ... (just as we install the ON_STACK dummy call location > > method because the AT_ENTRY method doesn't work for combined applications.) > > In that case, maybe this is really specific to PowerPC; it sounds like > it won't work for any general multi-architecture target. OK, agreed. I'll make this specific to PowerPC as part of the Cell multi-arch support (b.t.w. I'll be posting an initial patch set for that really soon now, I hope ...) Bye, Ulrich -- Dr. Ulrich Weigand GNU Toolchain for Linux on System z and Cell BE Ulrich.Weigand@de.ibm.com