Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1161382AbWJYUoJ (ORCPT ); Wed, 25 Oct 2006 16:44:09 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1161383AbWJYUoI (ORCPT ); Wed, 25 Oct 2006 16:44:08 -0400 Received: from dsl027-180-168.sfo1.dsl.speakeasy.net ([216.27.180.168]:47056 "EHLO sunset.davemloft.net") by vger.kernel.org with ESMTP id S1161382AbWJYUoG (ORCPT ); Wed, 25 Oct 2006 16:44:06 -0400 Date: Wed, 25 Oct 2006 13:43:54 -0700 (PDT) Message-Id: <20061025.134354.92582918.davem@davemloft.net> To: supriyak@in.ibm.com Cc: linux-kernel@vger.kernel.org Subject: Re: Incorrect order of last two arguments of ptrace for requests PPC_PTRACE_GETREGS, SETREGS, GETFPREGS, SETFPREGS From: David Miller In-Reply-To: <453F421A.6070507@in.ibm.com> References: <453F421A.6070507@in.ibm.com> X-Mailer: Mew version 4.2 on Emacs 21.4 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 603 Lines: 17 From: supriya kannery Date: Wed, 25 Oct 2006 16:23:14 +0530 > If we exchange the last two arguments like, > > ptrace (PPC_PTRACE_GETREGS, pid, ®[0], 0); > > it works! Please make sure that programs, such as gdb, aren't using the reversed argument order. If they are, you cannot "fix" this as it will break all such applictions. - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/