From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17282 invoked by alias); 30 May 2012 15:31:36 -0000 Received: (qmail 17272 invoked by uid 22791); 30 May 2012 15:31:35 -0000 X-SWARE-Spam-Status: No, hits=-2.9 required=5.0 tests=AWL,BAYES_00,KHOP_THREADED,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from sibelius.xs4all.nl (HELO glazunov.sibelius.xs4all.nl) (83.163.83.176) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 30 May 2012 15:31:22 +0000 Received: from glazunov.sibelius.xs4all.nl (kettenis@localhost [127.0.0.1]) by glazunov.sibelius.xs4all.nl (8.14.5/8.14.3) with ESMTP id q4UFVEma006149; Wed, 30 May 2012 17:31:14 +0200 (CEST) Received: (from kettenis@localhost) by glazunov.sibelius.xs4all.nl (8.14.5/8.14.3/Submit) id q4UFVC2D030735; Wed, 30 May 2012 17:31:12 +0200 (CEST) Date: Wed, 30 May 2012 15:31:00 -0000 Message-Id: <201205301531.q4UFVC2D030735@glazunov.sibelius.xs4all.nl> From: Mark Kettenis To: emachado@linux.vnet.ibm.com CC: mark.kettenis@xs4all.nl, gdb-patches@sourceware.org, prasad@linux.vnet.ibm.com In-reply-to: <4FC59F24.1060907@linux.vnet.ibm.com> (message from Edjunior Barbosa Machado on Wed, 30 May 2012 01:16:36 -0300) Subject: Re: [PATCH] disable ptrace BookE interface for PowerPC server processors References: <1337700251-9366-1-git-send-email-emachado@linux.vnet.ibm.com> <201205221734.q4MHY0FQ014975@glazunov.sibelius.xs4all.nl> <4FBF0153.4060108@linux.vnet.ibm.com> <201205291854.q4TIsH0i008399@glazunov.sibelius.xs4all.nl> <4FC59F24.1060907@linux.vnet.ibm.com> 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: 2012-05/txt/msg01043.txt.bz2 > Date: Wed, 30 May 2012 01:16:36 -0300 > From: Edjunior Barbosa Machado > CC: gdb-patches@sourceware.org, prasad@linux.vnet.ibm.com > X-Content-Scanned: Fidelis XPS MAILER > x-cbid: 12053004-2362-0000-0000-00000750AC06 > X-XS4ALL-DNSBL-Checked: mxdrop221.xs4all.nl checked 32.104.18.26 against DNS blacklists > X-CNFS-Analysis: v=2.0 cv=ZbOqwLpA c=1 sm=0 a=nuFXaNQDUkPZN5VKAd7j+w==:17 > a=kUSHYda-BbMA:10 a=sYXyRZcBhIwA:10 a=-oxz3-EH24EA:10 > a=8nJEP1OIZ-IA:10 a=9tSwX7uLV1UA:10 a=VnNF1IyMAAAA:8 > a=d0wQilHS6ga4fH6NGAsA:9 a=wPNLvfGTeEIA:10 > a=nuFXaNQDUkPZN5VKAd7j+w==:117 > X-Virus-Scanned: by XS4ALL Virus Scanner > X-XS4ALL-Spam-Score: 0.0 () none > X-XS4ALL-Spam: NO > Envelope-To: mark.kettenis@xs4all.nl > > On 05/29/2012 03:54 PM, Mark Kettenis wrote: > > >> Date: Fri, 25 May 2012 00:49:39 -0300 > >> From: Edjunior Barbosa Machado > >> > >> On 05/22/2012 02:34 PM, Mark Kettenis wrote: > >> > >>> But how are you going to handle this when that functionality does > >>> become available? > >> > >> > >> Thanks for the feedback and sorry for the late reply. I was discussing > >> with the kernel developer responsible for the next version of the ptrace > >> booke interface and he proposed that the 'features' field from the > >> struct ppc_debug_info returned by ptrace PPC_PTRACE_GETHWDBGINFO call > >> could be used to check if its availability. According to him, this field > >> is currently 0 for servers, but once the new ptrace interface becomes > >> functional, it will return the flag PPC_DEBUG_FEATURE_DATA_BP_RANGE > >> enabled. Moreover, this change will not affect the behavior on embedded > >> processors (which already has PPC_DEBUG_FEATURE_DATA_BP_RANGE and > >> PPC_DEBUG_FEATURE_DATA_BP_MASK enabled). > >> > >> Please consider the new version of the patch below. > > > > Certainly makes more sense to me ;) > > > which means this is ok to apply? :) Fine with me, but I've never (knowingly) used Linux on POWER/PowerPC/PowerISA ;).