Re: [RFC/PATCH 5/5] powerpc: Allow ptrace write to pt_regs trap
From: Ulrich Weigand <hidden>
Date: 2007-05-30 13:08:57
Benjamin Herrenschmidt [off-list ref] wrote on 05/29/2007 11:41:40 PM:
On Tue, 2007-05-29 at 17:41 +0200, Ulrich Weigand wrote:quoted
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)
Um? I see this in the PTRACE_POKEUSR case in arch_ptrace:
if (index == PT_ORIG_R3)
break;
Mit freundlichen Gruessen / Best Regards
Ulrich Weigand
--
Dr. Ulrich Weigand | Phone: +49-7031/16-3727
GNU compiler/toolchain for Linux on System z and Cell BE
IBM Deutschland Entwicklung GmbH
Vorsitzender des Aufsichtsrats: Martin Jetter | Geschäftsführung:
Herbert Kircher
Sitz der Gesellschaft: Böblingen | Registergericht: Amtsgericht
Stuttgart, HRB 243294