From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13498 invoked by alias); 19 Nov 2014 09:23:55 -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 13485 invoked by uid 89); 19 Nov 2014 09:23:54 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.0 required=5.0 tests=AWL,BAYES_00,SPF_HELO_PASS,SPF_PASS,T_RP_MATCHES_RCVD autolearn=ham version=3.3.2 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, 19 Nov 2014 09:23:54 +0000 Received: from int-mx10.intmail.prod.int.phx2.redhat.com (int-mx10.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id sAJ9NnV4023231 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Wed, 19 Nov 2014 04:23:49 -0500 Received: from [127.0.0.1] (ovpn01.gateway.prod.ext.ams2.redhat.com [10.39.146.11]) by int-mx10.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id sAJ9NkYN030529; Wed, 19 Nov 2014 04:23:48 -0500 Message-ID: <546C61A2.7040308@redhat.com> Date: Wed, 19 Nov 2014 09:23:00 -0000 From: Pedro Alves User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.1.1 MIME-Version: 1.0 To: Sergio Durigan Junior CC: GDB Patches , Gabriel Krisman Bertazi Subject: PowerPC: "set architecture" -> "Architecture not recognized" ? (was: Re: [PATCH 3/3] Testcase) References: <1415837887-28888-1-git-send-email-sergiodj@redhat.com> <1415837887-28888-4-git-send-email-sergiodj@redhat.com> <546625C4.5050007@redhat.com> <87y4r9xk1f.fsf@redhat.com> <546B6208.3030100@redhat.com> <87vbmcw9ai.fsf@redhat.com> In-Reply-To: <87vbmcw9ai.fsf@redhat.com> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit X-SW-Source: 2014-11/txt/msg00436.txt.bz2 On 11/18/2014 08:20 PM, Sergio Durigan Junior wrote: >>> and in >>> + # some systems (PowerPC, for example), if we load a binary >>> + # there is no way to set other architecture. >> >> ... eh. I wasn't aware of that. What does GDB say? > > Here is what I see on a Fedora 20 PPC64 box: > > (gdb) set architecture > Requires an argument. Valid arguments are rs6000:6000, rs6000:rs1, > rs6000:rsc, rs6000:rs2, powerpc:common64, powerpc:common, powerpc:603, > powerpc:EC603e, powerpc:604, powerpc:403, powerpc:601, powerpc:620, > powerpc:630, powerpc:a35, powerpc:rs64ii, powerpc:rs64iii, powerpc:7400, > powerpc:e500, powerpc:e500mc, powerpc:e500mc64, powerpc:MPC8XX, > powerpc:750, powerpc:titan, powerpc:vle, powerpc:e5500, powerpc:e6500, > auto. > (gdb) set architecture powerpc:common > Architecture `powerpc:common' not recognized. Eh, this has the looks of a bug. At the very least, if on purpose for some reason, the error string is misleading. > The target architecture is set automatically (currently > powerpc:common64) Thanks, Pedro Alves