From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 129891 invoked by alias); 13 Feb 2017 17:08:41 -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 129870 invoked by uid 89); 13 Feb 2017 17:08:40 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.4 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 spammy=disassembly, viewer, Disassembly, disassemble X-HELO: mx0a-001b2d01.pphosted.com Received: from mx0b-001b2d01.pphosted.com (HELO mx0a-001b2d01.pphosted.com) (148.163.158.5) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Mon, 13 Feb 2017 17:08:39 +0000 Received: from pps.filterd (m0098416.ppops.net [127.0.0.1]) by mx0b-001b2d01.pphosted.com (8.16.0.20/8.16.0.20) with SMTP id v1DH4VBS179955 for ; Mon, 13 Feb 2017 12:08:37 -0500 Received: from e32.co.us.ibm.com (e32.co.us.ibm.com [32.97.110.150]) by mx0b-001b2d01.pphosted.com with ESMTP id 28jh1nkuyy-1 (version=TLSv1.2 cipher=AES256-SHA bits=256 verify=NOT) for ; Mon, 13 Feb 2017 12:08:37 -0500 Received: from localhost by e32.co.us.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Mon, 13 Feb 2017 10:08:35 -0700 Received: from d03dlp03.boulder.ibm.com (9.17.202.179) by e32.co.us.ibm.com (192.168.1.132) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; Mon, 13 Feb 2017 10:08:32 -0700 Received: from b01cxnp22033.gho.pok.ibm.com (b01cxnp22033.gho.pok.ibm.com [9.57.198.23]) by d03dlp03.boulder.ibm.com (Postfix) with ESMTP id 0186019D8051; Mon, 13 Feb 2017 10:07:44 -0700 (MST) Received: from b01ledav006.gho.pok.ibm.com (b01ledav006.gho.pok.ibm.com [9.57.199.111]) by b01cxnp22033.gho.pok.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id v1DH8Vd144368028; Mon, 13 Feb 2017 17:08:31 GMT Received: from b01ledav006.gho.pok.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id A56EAAC043; Mon, 13 Feb 2017 12:08:30 -0500 (EST) Received: from otta.rchland.ibm.com (unknown [9.10.86.191]) by b01ledav006.gho.pok.ibm.com (Postfix) with ESMTP id 3E853AC046; Mon, 13 Feb 2017 12:08:30 -0500 (EST) Subject: Re: [PATCH, updated] Add support for setting disassembler-options in GDB for POWER, ARM and S390 To: Yao Qi References: <867f4uccky.fsf@gmail.com> Cc: gdb-patches@sourceware.org, Alan Modra , Pedro Alves , Ulrich Weigand , Eli Zaretskii , Nick Clifton , binutils From: Peter Bergner Date: Mon, 13 Feb 2017 17:08:00 -0000 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:45.0) Gecko/20100101 Thunderbird/45.7.1 MIME-Version: 1.0 In-Reply-To: <867f4uccky.fsf@gmail.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-TM-AS-GCONF: 00 X-Content-Scanned: Fidelis XPS MAILER x-cbid: 17021317-0004-0000-0000-0000118F8E2C X-IBM-SpamModules-Scores: X-IBM-SpamModules-Versions: BY=3.00006610; HX=3.00000240; KW=3.00000007; PH=3.00000004; SC=3.00000203; SDB=6.00821411; UDB=6.00401733; IPR=6.00598864; BA=6.00005133; NDR=6.00000001; ZLA=6.00000005; ZF=6.00000009; ZB=6.00000000; ZP=6.00000000; ZH=6.00000000; ZU=6.00000002; MB=3.00014267; XFM=3.00000011; UTC=2017-02-13 17:08:34 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 17021317-0005-0000-0000-00007D0485C1 Message-Id: <2a9aaef6-7ead-a375-b9e7-b72429742c96@vnet.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:,, definitions=2017-02-13_09:,, signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 spamscore=0 suspectscore=0 malwarescore=0 phishscore=0 adultscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1612050000 definitions=main-1702130166 X-IsSubscribed: yes X-SW-Source: 2017-02/txt/msg00348.txt.bz2 One additional question for you. In the unpatched sources, opcodes/arm-dis.c seems to prefer GCC register set names via: /* Default to GCC register name set. */ static unsigned int regname_selected = 1; ...while gdb/arm-tdep.c seems to want STD register set names via: /* Disassembly style to use. Default to "std" register names. */ static const char *disassembly_style; ...and... /* Sync the opcode insn printer with our register viewer. */ parse_arm_disassembler_option ("reg-names-std"); ...and... /* When we find the default names, tell the disassembler to use them. */ if (!strcmp (setname, "std")) { disassembly_style = setname; set_arm_regname_option (i); } The way this is coded, reg-names-gcc will be used as the default when we disassemble arm instructions using objdump, while GDB will default to using reg-names-std. Is this intentional? Peter