From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wr1-x42c.google.com (mail-wr1-x42c.google.com [IPv6:2a00:1450:4864:20::42c]) by sourceware.org (Postfix) with ESMTPS id 584D13858400 for ; Thu, 19 Aug 2021 10:32:37 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 584D13858400 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=embecosm.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=embecosm.com Received: by mail-wr1-x42c.google.com with SMTP id q10so8349099wro.2 for ; Thu, 19 Aug 2021 03:32:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=embecosm.com; s=google; h=date:from:to:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to; bh=rbSuthtgPDGZX4RvxhYKD9e9sLzfRhz+YpEfI0R/gLE=; b=Ph81eD6JfQSQvIYl01IMe46QSgsIlt+cDhEixJOgLJchPsG31+0k0AL7DPiwNNVBSm uaEL8Sfr+xI6UxHQV1JGCuVXu7wJ7NPttBgRIy6yqF42TWKZ5ynPEoGZFuZZaJg9YXQ/ q+sVdJybSOTz3YzLcD1W/BzUqVFXnsmQupAzNHGVrkzuD/mpzY0fKDE9RcmllBRA2Qle ijqfbXcaI0hbR5kqCY1FaZZJTG8fahyoE/sVw+cnUq/CJCUhpKt90SBVSMxIIuNDxgCR gNnk8lgTCzkYIkKHywamup95KRFDDtbSCNsBnYKHtky3ZoXCYZT9rCYwdw2Cm9oloHTW slNg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:subject:message-id:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to; bh=rbSuthtgPDGZX4RvxhYKD9e9sLzfRhz+YpEfI0R/gLE=; b=qkVQXaFbOlmHrp0iA/mI0wPW3egWHbWPoqQp8CpKY4fh46ydCnMXfYJq0Kz9h3m2+t Sp3wMzCdgIfqf7zhNBYfy6RQcY7R6R3XF6RNk+K6FIc6Xpk3FWnL47AbF87V2ZTqEsbe 3npBtK5h29nqSvivvVLrmx2amsYtrBMijBYa0qSFtSR92e8U4JzBkuKE/jS+wnxt/aSS zYseagHqONtb68brjEU2yM4KvnX358l0vScOylGWnAbjWov3woswUTb57lAhhAR8lrta kaAqo/5g9pdsUjXw5U3tsQ+0OVoxaJYor+YFJnVX3+6EMTpg9B7SQD3D5q8JZ7CA7NWb ewZw== X-Gm-Message-State: AOAM533hPAGGYaJsZJCPKb8TuvYH2/BeCZ7nk65dsOo4WFgxstPLMTPS 7u8uaAmQW3dy94TufU7/oSODNQ== X-Google-Smtp-Source: ABdhPJydxH3k/f2Wb0uSEn89BMYWt64HIyEb3OXFB5My1HJiteiQryMPcOQmySLrFq3BLII+FHcAWA== X-Received: by 2002:a5d:5008:: with SMTP id e8mr2884104wrt.103.1629369156365; Thu, 19 Aug 2021 03:32:36 -0700 (PDT) Received: from localhost (host86-188-49-44.range86-188.btcentralplus.com. [86.188.49.44]) by smtp.gmail.com with ESMTPSA id g6sm2361929wmq.14.2021.08.19.03.32.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 19 Aug 2021 03:32:35 -0700 (PDT) Date: Thu, 19 Aug 2021 11:32:35 +0100 From: Andrew Burgess To: =?utf-8?B?5Lu75bu65Yab?= , gdb@sourceware.org Subject: Re: Enable simulator on gdb Message-ID: <20210819103235.GA4124615@embecosm.com> References: <279bc44e.74a.17aad71c848.Coremail.ronren@yeah.net> <20210729084942.GB9094@embecosm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable In-Reply-To: X-Operating-System: Linux/5.8.18-100.fc31.x86_64 (x86_64) X-Uptime: 11:32:09 up 1 day, 23:28, X-Editor: GNU Emacs [ http://www.gnu.org/software/emacs ] X-Spam-Status: No, score=-5.9 required=5.0 tests=BAYES_00, BODY_8BITS, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org X-BeenThere: gdb@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 19 Aug 2021 10:32:47 -0000 * Mike Frysinger [2021-08-17 18:13:37 -0400]: > On 29 Jul 2021 09:49, Andrew Burgess wrote: > > * =E4=BB=BB=E5=BB=BA=E5=86=9B via Gdb [2021-07-16 = 11:52:33 +0800]: > >=20 > > > I have a complie question, An help me answer it?=20 > > > I use binutils-gdb source code to build gdb for aarch64=EF=BC=8Cth= e version is =E2=80=9Cgdb-9.2-release=E2=80=9D, and complie command line = is "./configure --target=3Daarch64 --enable-sim". > > > Compile is completed, but when i enter gdb and type command "targe= t sim" , gdb said "Undefined target command: "sim": ..." , am i missed s= ometing when i complie gdb?=20 > >=20 > > The problem is that in gdb/configure.tgt there is no link to the > > compiled simulator. The patch below adds this link for aarch64-elf > > targets. > >=20 > > I believe the reason for this is that the aarch64 simulator is > > considered deprecated in favour of using QEMU. Or it could just be an > > oversight that this link is missing. >=20 > while i love QEMU, i'm not sure it should be relevant wrt decisions about= the > GNU sim and its integration in places. >=20 > > Either way, this should get it working for you. > >=20 > > --- a/gdb/configure.tgt > > +++ b/gdb/configure.tgt > > @@ -117,6 +117,7 @@ case "${targ}" in > > aarch64*-*-elf | aarch64*-*-rtems*) > > # Target: AArch64 embedded system > > gdb_target_obs=3D"aarch64-newlib-tdep.o" > > + gdb_sim=3D../sim/arm/libsim.a >=20 > guessing you meant aarch64 there and not arm ? Yes I did. Thanks. Andrew