From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28146 invoked by alias); 29 Nov 2018 00:22:33 -0000 Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org Received: (qmail 28134 invoked by uid 89); 29 Nov 2018 00:22:33 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_PASS autolearn=ham version=3.3.2 spammy=armv5tej, Hx-languages-length:2019 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, 29 Nov 2018 00:22:31 +0000 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 731BC1F8EC; Thu, 29 Nov 2018 00:22:30 +0000 (UTC) Received: from [127.0.0.1] (ovpn04.gateway.prod.ext.ams2.redhat.com [10.39.146.4]) by smtp.corp.redhat.com (Postfix) with ESMTP id CDB69850F; Thu, 29 Nov 2018 00:22:29 +0000 (UTC) Subject: =?UTF-8?Q?Re:_gdbserver:_Target_description_specified_unknown_archi?= =?UTF-8?B?dGVjdHVyZSDigJxhYXJjaDY04oCd?= To: Peter Balazovic , gdb@sourceware.org References: From: Pedro Alves Message-ID: <0da09eee-b54e-0232-edb4-41fa805ae473@redhat.com> Date: Thu, 29 Nov 2018 00:22:00 -0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-SW-Source: 2018-11/txt/msg00027.txt.bz2 On 11/28/2018 10:42 PM, Peter Balazovic wrote: > this is mine config available on gdb > > (gdb) show configuration > This GDB was configured as follows: > configure --host=x86_64-w64-mingw32 --target=x86_64-w64-mingw32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^ As suspected, here's the problem ^^ > ("Relocatable" means the directory can be moved with the GDB installation > tree, and GDB will still find it.) > (gdb) set architecture > auto i386:intel i386:x64-32 i386:x64-32:nacl > i386:x86-64:intel i8086 > i386 i386:nacl i386:x64-32:intel i386:x86-64 > i386:x86-64:nacl As you can see, your build of gdb only supports x86 machines. With an --enable-targets=all build, I see many, many more entries: (gdb) set architecture Requires an argument. Valid arguments are ARC600, A6, ARC601, ARC700, A7, ARCv2, EM, HS, arm, armv2, armv2a, armv3, armv3m, armv4, armv4t, armv5, armv5t, armv5te, xscale, ep9312, iwmmxt, iwmmxt2, armv5tej, armv6, armv6kz, armv6t2, armv6k, armv7, armv6-m, armv6s-m, armv7e-m, armv8-a, armv8-r, armv8-m.base, armv8-m.main, arm_any, avr, avr:1, avr:2, avr:25, avr:3, avr:31, avr:35, avr:4, avr:5, avr:51, avr:6, avr:100, avr:101, avr:102, avr:103, avr:104, avr:105, avr:106, avr:107, bfin, cris, crisv32, cris:common_v10_v32, csky, [...] ia64-elf64, ia64-elf32, auto. (gdb) ... including the aarch64 you need: (gdb) set architecture aarch64 aarch64 aarch64:ilp32 > > > On Wed, Nov 28, 2018 at 11:28 PM Pedro Alves wrote: > >> On 11/28/2018 06:31 PM, Peter Balazovic wrote: >> >>> I am looking for an advice to correctly debug with ARM remote target. >> >> Does "set architecture " give you the option to select aarch64? >> >> It sounds like your gdb is not configured to support Aarch64. >> >> You'll need a gdb configured with >> --target=aarch64-linux-gnu >> or >> --enable-targets=aarch64-linux-gnu >> --enable-targets=all >> >> Try "show configuration" in gdb. Thanks, Pedro Alves