From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 92254 invoked by alias); 3 Nov 2016 11:01:18 -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 92174 invoked by uid 89); 3 Nov 2016 11:01:13 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD,SPF_HELO_PASS autolearn=ham version=3.3.2 spammy= X-Spam-User: qpsmtpd, 2 recipients 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 ESMTP; Thu, 03 Nov 2016 11:01:08 +0000 Received: from int-mx09.intmail.prod.int.phx2.redhat.com (int-mx09.intmail.prod.int.phx2.redhat.com [10.5.11.22]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 0F2E14F5; Thu, 3 Nov 2016 11:01:07 +0000 (UTC) Received: from [127.0.0.1] (ovpn01.gateway.prod.ext.ams2.redhat.com [10.39.146.11]) by int-mx09.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id uA3B13Ps026231; Thu, 3 Nov 2016 07:01:03 -0400 Subject: Re: [PATCH, RFC] Add support for choosing disassembler cpu in GDB for POWER. To: Peter Bergner , Ulrich Weigand References: <20161012082525.3250910FDC3@oc8523832656.ibm.com> <88940498-822b-b192-b983-d8571a81ad87@redhat.com> <2c62687d-f013-5af8-96ae-d7f56d28c218@redhat.com> <4f8959a7-33b9-385c-3c63-2d5b26286579@vnet.ibm.com> <3b814d5e-f716-f1c7-1530-684901b28e30@redhat.com> <88312c99-f1bb-c3d9-8e65-8ab64f086f42@vnet.ibm.com> Cc: Alan Modra , gdb-patches@sourceware.org, binutils From: Pedro Alves Message-ID: <8733fac4-9e5d-43de-75a6-0f191c4000e7@redhat.com> Date: Thu, 03 Nov 2016 11:01:00 -0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.2.0 MIME-Version: 1.0 In-Reply-To: <88312c99-f1bb-c3d9-8e65-8ab64f086f42@vnet.ibm.com> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit X-SW-Source: 2016-11/txt/msg00043.txt.bz2 On 10/28/2016 03:53 PM, Peter Bergner wrote: > I didn't realize we could have multiple gdbarchs for the same > arch live at the same time. Do you have a suggestion on how > to fix this? Maybe each arch will have its own *-tdep.c global > var to hold it and maybe store a pointer to that in the gdbarch? Yeah, that sounds like the simplest way to handle it. BTW, I'm also not sure about saying "default" in "show disassembler-options". I don't think "set disassembler-options default" would work? Do we still need that given the option is no longer described in terms of cpus? Related, "set disassembler-options" should work to clear options. I couldn't tell whether it works from a quick skim over your latest patch. Thanks a lot for working on this, BTW. -- Pedro Alves