From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 48452 invoked by alias); 24 Feb 2016 19:02:51 -0000 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 Received: (qmail 48441 invoked by uid 89); 24 Feb 2016 19:02:50 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD,SPF_HELO_PASS autolearn=ham version=3.3.2 spammy= X-HELO: mx1.redhat.com Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-GCM-SHA384 encrypted) ESMTPS; Wed, 24 Feb 2016 19:02:44 +0000 Received: from int-mx11.intmail.prod.int.phx2.redhat.com (int-mx11.intmail.prod.int.phx2.redhat.com [10.5.11.24]) by mx1.redhat.com (Postfix) with ESMTPS id 95F6365436; Wed, 24 Feb 2016 19:02:43 +0000 (UTC) Received: from [127.0.0.1] (ovpn01.gateway.prod.ext.phx2.redhat.com [10.5.9.1]) by int-mx11.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id u1OJ2g6E006630; Wed, 24 Feb 2016 14:02:42 -0500 Message-ID: <56CDFE52.9090104@redhat.com> Date: Wed, 24 Feb 2016 19:02:00 -0000 From: Pedro Alves User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.7.0 MIME-Version: 1.0 To: Antoine Tremblay CC: =?UTF-8?B?TWFyY2luIEtvxZtjaWVsbmlja2k=?= , gdb-patches@sourceware.org, qiyaoltc@gmail.com Subject: Re: [PATCH v3] Enable tracing of pseudo-registers on ARM References: <1455910116-13237-1-git-send-email-antoine.tremblay@ericsson.com> <56C7796B.3030504@redhat.com> <56CDF23A.8000007@redhat.com> <56CDF48B.5040008@0x04.net> <56CDF792.3040604@redhat.com> In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-SW-Source: 2016-02/txt/msg00752.txt.bz2 On 02/24/2016 06:55 PM, Antoine Tremblay wrote: > The only requirement for this to work properly is that the arch uses > tdesc_use_registers, otherwise the default mapping function to tdesc is > identity to GDB numbers. Even then, if the target doesn't report a tdesc, register numbers on the target side must match gdb's. So it still works. The reason the current code doesn't consider tdesc numbers is that AX predates xml target descriptions, and back then gdb numbers was all you had. > s390 uses that so it should be fine. Thanks, Pedro Alves