From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from gate.crashing.org (gate.crashing.org [63.228.1.57]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTP id 908C3DE0A2 for ; Wed, 30 May 2007 07:41:49 +1000 (EST) Subject: Re: [RFC/PATCH 5/5] powerpc: Allow ptrace write to pt_regs trap From: Benjamin Herrenschmidt To: Ulrich Weigand In-Reply-To: References: Content-Type: text/plain Date: Wed, 30 May 2007 07:41:40 +1000 Message-Id: <1180474900.19517.203.camel@localhost.localdomain> Mime-Version: 1.0 Cc: linuxppc-dev@ozlabs.org, Paul Mackerras , Anton Blanchard List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Tue, 2007-05-29 at 17:41 +0200, Ulrich Weigand wrote: > This doesn't look sufficient. If you want GDB to use the save/ > restore style means of handling interrupted calls (like i386), > at the very least we also need the capability to *write* the > orig_gpr3 field, which is currently prohibited. (I don't know > why this is case, though.) It's not prohibited afaik ... we allow writing to everything <= MQ (39) on 32 bits and <= CCR (38) on 64 bits and ORIG_R3 qualifies (34) Ben.