From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm1-x336.google.com (mail-wm1-x336.google.com [IPv6:2a00:1450:4864:20::336]) by sourceware.org (Postfix) with ESMTPS id AFC703858023 for ; Thu, 29 Jul 2021 08:49:44 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org AFC703858023 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-wm1-x336.google.com with SMTP id n11so3199945wmd.2 for ; Thu, 29 Jul 2021 01:49:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=embecosm.com; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to; bh=7yguTruuSoDs51yXHTE9gnqvUKCAdbUv0NdroRWf2cE=; b=ApbN7Pj/Vkxkdr0MtyaH9cssGltexCLVPlNkOOsfIx/w6wLbZdL8nfvrfcGESWyZbX 49l3V6k1xrW/Tv3CvNhm7Igh8ac2h1Z6VsGGu/ahMqqZGwYo6Xo5IM7wRFfPthbMJKoJ GTL2dtYA5hnlgGzUiU1S1mbeH9tzVWKlpMYI1QiEZKD4ha0TfDtesvGohihjMlaGxkNn pRsvZLEXsBWV0IuEZMPay39jusvxMiRn1k6wokuDoKJVE//E5dOP5vNznX1pJdd7tZT6 QL+5+m2XgMRov1QVRuiUVqpKC27sdC3WlmScSg2l2fT758ENQDtZI7/5U1qxBnadgBZ4 r4xg== 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:cc:subject:message-id:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to; bh=7yguTruuSoDs51yXHTE9gnqvUKCAdbUv0NdroRWf2cE=; b=eE2Fma41coOyhEVpKZxQ1XmntBp0lA+2bcXwYvBeHnHvaBnQTkG0ZVmL1MT4ssXw+5 OdTAVQ572PCxXE2axlF1D+GAF6r7cGvkFFy2bG/okjwEzpVK/vtt9M5f8K0WvcyUZst3 2yY+Xh0x+Zpn+AIyFHcJ41mtFeZlORmpzExyl2F9pytDH92L554qaUEZHcXh2nhHz26M rElj/AQYQMZ8UOoyDpRb8tdXQL8xbQ+kXEC9CD+rGSWt1UO9UHGL6pKMHOTGVa2lmSax PrhOWYx+kDpEbMHORp6wCdlGIk0kZfgwCei8cDMidh5KbK9EO6Qp3hf6ed9nC3mE5sPw 58Tg== X-Gm-Message-State: AOAM533XN/efhB7oEekVw2STHz8pwlkcf3dO+7kwZi8a9zaqbIoOc2ej Bu6u/Swm7Wi4ZSaJvRnw9H1Vqw== X-Google-Smtp-Source: ABdhPJzdkYGb6CqzCAqm8kttbo+4UVkYpNPmWqs1jvA9skHCdBvoZ4eKS7+38ZJVNo+pbne7hi+r/g== X-Received: by 2002:a1c:f206:: with SMTP id s6mr3496676wmc.102.1627548583709; Thu, 29 Jul 2021 01:49:43 -0700 (PDT) Received: from localhost (host86-161-16-194.range86-161.btcentralplus.com. [86.161.16.194]) by smtp.gmail.com with ESMTPSA id a2sm2602232wrn.95.2021.07.29.01.49.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 29 Jul 2021 01:49:43 -0700 (PDT) Date: Thu, 29 Jul 2021 09:49:42 +0100 From: Andrew Burgess To: =?utf-8?B?5Lu75bu65Yab?= Cc: gdb@sourceware.org Subject: Re: Enable simulator on gdb Message-ID: <20210729084942.GB9094@embecosm.com> References: <279bc44e.74a.17aad71c848.Coremail.ronren@yeah.net> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable In-Reply-To: <279bc44e.74a.17aad71c848.Coremail.ronren@yeah.net> X-Operating-System: Linux/5.8.18-100.fc31.x86_64 (x86_64) X-Uptime: 09:47:03 up 1 day, 14:54, X-Editor: GNU Emacs [ http://www.gnu.org/software/emacs ] X-Spam-Status: No, score=-9.0 required=5.0 tests=BAYES_00, BODY_8BITS, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, RCVD_IN_BARRACUDACENTRAL, 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, 29 Jul 2021 08:49:46 -0000 * =E4=BB=BB=E5=BB=BA=E5=86=9B via Gdb [2021-07-16 11:5= 2:33 +0800]: > I have a complie question, An help me answer it?=20 > I use binutils-gdb source code to build gdb for aarch64=EF=BC=8Cthe ve= rsion is =E2=80=9Cgdb-9.2-release=E2=80=9D, and complie command line is "= =2E/configure --target=3Daarch64 --enable-sim". > Compile is completed, but when i enter gdb and type command "target si= m" , gdb said "Undefined target command: "sim": ..." , am i missed somet= ing when i complie gdb?=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. 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. Either way, this should get it working for you. Thanks, Andrew -- diff --git a/gdb/configure.tgt b/gdb/configure.tgt index 5f66cda6b78..5dcf67a662f 100644 --- 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 aarch64*-*-freebsd*)