From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23288 invoked by alias); 28 Oct 2016 14:24:21 -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 23255 invoked by uid 89); 28 Oct 2016 14:24:20 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.6 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 spammy=Hx-languages-length:897 X-HELO: mx0a-001b2d01.pphosted.com Received: from mx0a-001b2d01.pphosted.com (HELO mx0a-001b2d01.pphosted.com) (148.163.156.1) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 28 Oct 2016 14:24:19 +0000 Received: from pps.filterd (m0098410.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.17/8.16.0.17) with SMTP id u9SEO0l1080128 for ; Fri, 28 Oct 2016 10:24:08 -0400 Received: from e18.ny.us.ibm.com (e18.ny.us.ibm.com [129.33.205.208]) by mx0a-001b2d01.pphosted.com with ESMTP id 26c3euhbfd-1 (version=TLSv1.2 cipher=AES256-SHA bits=256 verify=NOT) for ; Fri, 28 Oct 2016 10:24:08 -0400 Received: from localhost by e18.ny.us.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Fri, 28 Oct 2016 10:24:07 -0400 Received: from d01dlp02.pok.ibm.com (9.56.250.167) by e18.ny.us.ibm.com (146.89.104.205) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; Fri, 28 Oct 2016 10:24:04 -0400 Received: from b01cxnp23034.gho.pok.ibm.com (b01cxnp23034.gho.pok.ibm.com [9.57.198.29]) by d01dlp02.pok.ibm.com (Postfix) with ESMTP id EF89A6E803C; Fri, 28 Oct 2016 10:23:39 -0400 (EDT) Received: from b01ledav005.gho.pok.ibm.com (b01ledav005.gho.pok.ibm.com [9.57.199.110]) by b01cxnp23034.gho.pok.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id u9SEO4ed12517838; Fri, 28 Oct 2016 14:24:04 GMT Received: from b01ledav005.gho.pok.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 4A0D5AE051; Fri, 28 Oct 2016 10:24:04 -0400 (EDT) Received: from otta.local (unknown [9.85.133.123]) by b01ledav005.gho.pok.ibm.com (Postfix) with ESMTP id DFBB8AE034; Fri, 28 Oct 2016 10:24:03 -0400 (EDT) Subject: Re: [PATCH, RFC] Add support for choosing disassembler cpu in GDB for POWER. To: Pedro Alves , Ulrich Weigand References: <20161012082525.3250910FDC3@oc8523832656.ibm.com> <88940498-822b-b192-b983-d8571a81ad87@redhat.com> <2c62687d-f013-5af8-96ae-d7f56d28c218@redhat.com> Cc: Alan Modra , gdb-patches@sourceware.org, binutils From: Peter Bergner Date: Fri, 28 Oct 2016 14:24:00 -0000 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:45.0) Gecko/20100101 Thunderbird/45.4.0 MIME-Version: 1.0 In-Reply-To: <2c62687d-f013-5af8-96ae-d7f56d28c218@redhat.com> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-TM-AS-GCONF: 00 X-Content-Scanned: Fidelis XPS MAILER x-cbid: 16102814-0044-0000-0000-000001987065 X-IBM-SpamModules-Scores: X-IBM-SpamModules-Versions: BY=3.00005994; HX=3.00000240; KW=3.00000007; PH=3.00000004; SC=3.00000189; SDB=6.00773959; UDB=6.00371695; IPR=6.00550760; BA=6.00004838; NDR=6.00000001; ZLA=6.00000005; ZF=6.00000009; ZB=6.00000000; ZP=6.00000000; ZH=6.00000000; ZU=6.00000002; MB=3.00013128; XFM=3.00000011; UTC=2016-10-28 14:24:06 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 16102814-0045-0000-0000-000005C56FC4 Message-Id: <4f8959a7-33b9-385c-3c63-2d5b26286579@vnet.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:,, definitions=2016-10-28_08:,, 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-1610280245 X-IsSubscribed: yes X-SW-Source: 2016-10/txt/msg00806.txt.bz2 On 10/28/16 9:10 AM, Pedro Alves wrote: > Maybe not. Where are the per-arch settings stored? They're stored in the gdbarch... > Consider a multi-arch/combined gdb. If I do: > > (gdb) thread 1.1 # PPC > (gdb) set disassembler-options power9 > (gdb) thread 2.1 # ARM > (gdb) set disassembler-options reg-names-gcc > (gdb) thread 1.1 # PPC > (gdb) show disassembler-options > > and the last "show" still remembers I had chosen > power9, then I'm happy without the arch specific command. ...which should support the above, as the gdbarch is different for each of these. > Maybe it doesn't even make sense to consider this > setting per-arch. Maybe per-inferior would be better. I have no idea how to do that, so I think I'll stick with a per-arch setting and maybe down the line, someone can extend it to that. Peter