From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 81042 invoked by alias); 28 Oct 2016 18:47:23 -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 79887 invoked by uid 89); 28 Oct 2016 18:47:23 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.1 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_LOW,RCVD_IN_SEMBACKSCATTER,SPF_PASS autolearn=ham version=3.3.2 spammy=compact, cell 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; Fri, 28 Oct 2016 18:47:21 +0000 Received: from pps.filterd (m0098416.ppops.net [127.0.0.1]) by mx0b-001b2d01.pphosted.com (8.16.0.17/8.16.0.17) with SMTP id u9SIhouG142925 for ; Fri, 28 Oct 2016 14:47:20 -0400 Received: from e06smtp08.uk.ibm.com (e06smtp08.uk.ibm.com [195.75.94.104]) by mx0b-001b2d01.pphosted.com with ESMTP id 26bvc3wxnx-1 (version=TLSv1.2 cipher=AES256-SHA bits=256 verify=NOT) for ; Fri, 28 Oct 2016 14:47:20 -0400 Received: from localhost by e06smtp08.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Fri, 28 Oct 2016 19:47:18 +0100 Received: from d06dlp01.portsmouth.uk.ibm.com (9.149.20.13) by e06smtp08.uk.ibm.com (192.168.101.138) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; Fri, 28 Oct 2016 19:47:17 +0100 Received: from b06cxnps4074.portsmouth.uk.ibm.com (d06relay11.portsmouth.uk.ibm.com [9.149.109.196]) by d06dlp01.portsmouth.uk.ibm.com (Postfix) with ESMTP id 1CF3C17D8069; Fri, 28 Oct 2016 19:49:32 +0100 (BST) Received: from d06av04.portsmouth.uk.ibm.com (d06av04.portsmouth.uk.ibm.com [9.149.37.216]) by b06cxnps4074.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id u9SIlGoZ28508326; Fri, 28 Oct 2016 18:47:16 GMT Received: from d06av04.portsmouth.uk.ibm.com (localhost [127.0.0.1]) by d06av04.portsmouth.uk.ibm.com (8.14.4/8.14.4/NCO v10.0 AVout) with ESMTP id u9SIlFsC015266; Fri, 28 Oct 2016 12:47:16 -0600 Received: from oc8523832656.ibm.com (icon-9-164-186-41.megacenter.de.ibm.com [9.164.186.41]) by d06av04.portsmouth.uk.ibm.com (8.14.4/8.14.4/NCO v10.0 AVin) with ESMTP id u9SIlF3X015263; Fri, 28 Oct 2016 12:47:15 -0600 Received: by oc8523832656.ibm.com (Postfix, from userid 500) id 6B7EC10B927; Fri, 28 Oct 2016 20:47:14 +0200 (CEST) Subject: Re: [PATCH, RFC] Add support for choosing disassembler cpu in GDB for POWER. To: bergner@vnet.ibm.com (Peter Bergner) Date: Fri, 28 Oct 2016 18:47:00 -0000 From: "Ulrich Weigand" Cc: palves@redhat.com (Pedro Alves), amodra@gmail.com (Alan Modra), gdb-patches@sourceware.org, binutils@sourceware.org (binutils) In-Reply-To: from "Peter Bergner" at Oct 28, 2016 10:02:03 AM MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-TM-AS-MML: disable X-Content-Scanned: Fidelis XPS MAILER x-cbid: 16102818-0032-0000-0000-0000023312ED X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 16102818-0033-0000-0000-00001D7C7071 Message-Id: <20161028184714.6B7EC10B927@oc8523832656.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:,, definitions=2016-10-28_11:,, 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-1609300000 definitions=main-1610280317 X-SW-Source: 2016-10/txt/msg00822.txt.bz2 Peter Bergner wrote: > On 10/28/16 9:15 AM, Ulrich Weigand wrote: > > It's probably not that important to exactly match objdump > > behavior here. B.t.w. how do you even enter a space as > > separator with the -M option? > > bergner@genoa:~$ objdump -d -M'power5 power6' wait.o | grep warning > warning: ignoring unknown -Mpower5 power6 option OK, well :-) As I said, it's probably not important to exactly match *this* detail in the GDB command ... > But not all arches have descriptions paired with the option name. > Looking at Pedro's objdump output from before: > > The following ARM specific disassembler options are supported for use with > the -M switch: > reg-names-special-atpcs Select special register names used in the ATPCS > reg-names-atpcs Select register names used in the ATPCS > reg-names-apcs Select register names used in the APCS > reg-names-std Select register names used in ARM's ISA documentation > reg-names-gcc Select register names used by GCC > reg-names-raw Select raw register names > force-thumb Assume all insns are Thumb insns > no-force-thumb Examine preceding label to determine an insn's type > > This would work well for what you propose, but on power, we just dump them out: > > The following PPC specific disassembler options are supported for use with > the -M switch: > 403, 405, 440, 464, 476, 601, 603, 604, 620, 7400, 7410, 7450, 7455, > 750cl, 821, 850, 860, a2, altivec, any, booke, booke32, cell, com, > e200z4, e300, e500, e500mc, e500mc64, e5500, e6500, e500x2, efs, power4, > power5, power6, power7, power8, power9, ppc, ppc32, ppc64, ppc64bridge, > ppcps, pwr, pwr2, pwr4, pwr5, pwr5x, pwr6, pwr7, pwr8, pwr9, pwrx, > spe, titan, vle, vsx, htm, 32, 64 Hmm, I see. I guess we could have NULL description string for those, and then the common printing routine could choose the compact output ... Bye, Ulrich -- Dr. Ulrich Weigand GNU/Linux compilers and toolchain Ulrich.Weigand@de.ibm.com