Return-Path: <linux-arm-kernel-bounces+lool=dooz.org@lists.infradead.org>
X-Original-To: lool@dooz.org
Delivered-To: lool@pig.zood.org
Received: from canuck.infradead.org (canuck.infradead.org [134.117.69.58])
	by pig.zood.org (Postfix) with ESMTP id E18FC4C0EB
	for <lool@dooz.org>; Wed, 19 Jan 2011 16:38:58 +0100 (CET)
Received: from localhost ([127.0.0.1] helo=canuck.infradead.org)
	by canuck.infradead.org with esmtp (Exim 4.72 #1 (Red Hat Linux))
	id 1Pfa6b-0005l3-Bi; Wed, 19 Jan 2011 15:37:53 +0000
Received: from service87.mimecast.com ([94.185.240.25])
	by canuck.infradead.org with smtp (Exim 4.72 #1 (Red Hat Linux))
	id 1Pfa6X-0005kc-TV for linux-arm-kernel@lists.infradead.org;
	Wed, 19 Jan 2011 15:37:51 +0000
Received: from cam-owa2.Emea.Arm.com (fw-tnat.cambridge.arm.com
	[217.140.96.21]) by service87.mimecast.com;
	Wed, 19 Jan 2011 15:37:44 +0000
Received: from e102139 ([10.1.255.212]) by cam-owa2.Emea.Arm.com with
	Microsoft SMTPSVC(6.0.3790.3959); Wed, 19 Jan 2011 15:37:41 +0000
From: "Will Deacon" <will.deacon@arm.com>
To: "'Russell King - ARM Linux'" <linux@arm.linux.org.uk>
References: <1295449635-4292-1-git-send-email-will.deacon@arm.com>
	<20110119151915.GG31652@n2100.arm.linux.org.uk>
In-Reply-To: <20110119151915.GG31652@n2100.arm.linux.org.uk>
Subject: RE: [RFC][PATCH] ARM: ptrace: remove single-step emulation code
Date: Wed, 19 Jan 2011 15:37:38 -0000
Message-ID: <000501cbb7ee$cdccc680$69665380$@deacon@arm.com>
MIME-Version: 1.0
X-Mailer: Microsoft Office Outlook 12.0
Thread-Index: Acu37EiRz331uehqTFW6alhlnOa9ggAAj4MA
Content-Language: en-gb
X-OriginalArrivalTime: 19 Jan 2011 15:37:41.0788 (UTC)
	FILETIME=[CF47CDC0:01CBB7EE]
X-MC-Unique: 111011915374400201
X-CRM114-Version: 20090807-BlameThorstenAndJenny ( TRE 0.7.6 (BSD) )
	MR-646709E3
X-CRM114-CacheID: sfid-20110119_103750_198252_209CD45F 
X-CRM114-Status: GOOD (  13.16  )
X-Spam-Score: -0.7 (/)
X-Spam-Report: SpamAssassin version 3.3.1 on canuck.infradead.org summary:
	Content analysis details:   (-0.7 points)
	pts rule name              description
	---- ----------------------
	--------------------------------------------------
	-0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/,
	low trust [94.185.240.25 listed in list.dnswl.org]
	0.0 MSGID_MULTIPLE_AT Message-ID contains multiple '@' characters
Cc: linux-arm-kernel@lists.infradead.org
X-BeenThere: linux-arm-kernel@lists.infradead.org
X-Mailman-Version: 2.1.12
Precedence: list
List-Id: <linux-arm-kernel.lists.infradead.org>
List-Unsubscribe: 
 <http://lists.infradead.org/mailman/options/linux-arm-kernel>,
	<mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe>
List-Archive: <http://lists.infradead.org/pipermail/linux-arm-kernel/>
List-Post: <mailto:linux-arm-kernel@lists.infradead.org>
List-Help: <mailto:linux-arm-kernel-request@lists.infradead.org?subject=help>
List-Subscribe: 
 <http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>,
	<mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: linux-arm-kernel-bounces@lists.infradead.org
Errors-To: linux-arm-kernel-bounces+lool=dooz.org@lists.infradead.org

Hi Russell,

> On Wed, Jan 19, 2011 at 03:07:15PM +0000, Will Deacon wrote:
> > I'm posting this as an RFC to see if anybody has a good reason to keep this
> > code around. There's also a chance I've missed an opportunity to remove some
> > related code, but I think I found everything. Tested on a Versatile Express,
> > single-stepping in GDB worked fine.
> 
> Have you checked whether strace and ltrace use single stepping?

strace works fine with this patch applied and, looking at the
sources, it doesn't use the SINGLESTEP request. As for ltrace,
it *does* use SINGLESTEP but it can use PTRACE_SYSCALL instead
(indeed, it does this for sparc, ia64 and mips). ltrace doesn't
have code for checking the ptrace return value so I'd say it's
their bug.

Will




_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
