From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id SHoZNcRYFGIyMgAAWB0awg (envelope-from ) for ; Mon, 21 Feb 2022 22:30:12 -0500 Received: by simark.ca (Postfix, from userid 112) id C7C0E1F3CB; Mon, 21 Feb 2022 22:30:12 -0500 (EST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-3.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.2 Received: from sourceware.org (server2.sourceware.org [8.43.85.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by simark.ca (Postfix) with ESMTPS id 0F2291EE1F for ; Mon, 21 Feb 2022 22:30:12 -0500 (EST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 50005385782B for ; Tue, 22 Feb 2022 03:30:11 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 50005385782B DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1645500611; bh=KwDuPi0QN8HvvkiiZaFuxFeY7jnPdtiPnWC3dKdAQeY=; h=Date:To:Subject:References:In-Reply-To:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:Cc: From; b=TFbnQLZl5nTd3Zw6+JpIqHVRUi5GhncrJtmyYrY8sxzChWBxHri1Xynrtb+tZQLn+ yJEt58RnRQkQOgslwfGnGEmf9hAUhTT/v8C0240KI78ajfadD27D2kA2U3JzX31NZ/ sSn75smN3aVirjMTRYiV6Qv/CXGWqKloiH+qaP64= Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) by sourceware.org (Postfix) with ESMTP id B6F933858408 for ; Tue, 22 Feb 2022 03:29:51 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org B6F933858408 Received: by smtp.gentoo.org (Postfix, from userid 559) id C1CCB3436A3; Tue, 22 Feb 2022 03:29:50 +0000 (UTC) Date: Mon, 21 Feb 2022 22:29:50 -0500 To: Hans-Peter Nilsson Subject: Re: [PATCH] sim: gdbinit: hoist setup to common code Message-ID: Mail-Followup-To: Hans-Peter Nilsson , gdb-patches@sourceware.org, hp@axis.com References: <20220217054035.10127-1-vapier@gentoo.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="qvmOmeDwcQoEJ9EE" Content-Disposition: inline In-Reply-To: X-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Mike Frysinger via Gdb-patches Reply-To: Mike Frysinger Cc: hp@axis.com, gdb-patches@sourceware.org Errors-To: gdb-patches-bounces+public-inbox=simark.ca@sourceware.org Sender: "Gdb-patches" --qvmOmeDwcQoEJ9EE Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On 21 Feb 2022 22:09, Hans-Peter Nilsson wrote: > On Thu, 17 Feb 2022, Mike Frysinger via Gdb-patches wrote: > > This was left in subdirs because of the dynamic cgen usage. However, > > we can move this breakpoint call to runtime and let gdb detect whether > > the symbol exists. >=20 > The .gdbinit file doesn't do much good in the sim/ directory > instead of sim/ where the "run" program is located (such > that .gdbinit is loaded when you start gdb there to debug it). >=20 > Make a symlink in sim/? personally i run `gdb ./xxx/run` since you have to be in sim/ to run `make` for all the common objects & libs, at least initially. that said, should be easy to generate xxx/.gdbinit files that do: source ../.gdbinit then both flows just work. -mike --qvmOmeDwcQoEJ9EE Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEEuQK1JxMl+JKsJRrUQWM7n+g39YEFAmIUWK4ACgkQQWM7n+g3 9YF9jw/9HegPtE1PSO8WKjgKqiW6k4XcntYBuWTEItXPB+Atk6MjpmB3L7bUkerv 9RgK1gq21EhX2BawuZP26/3gGQYyQF0FLNiBw6tGDRVdS1yOZEd4DV/kgulSavER vVffO3uDGZ1L2PREcltPd0ngb0G+T7ys4Yftseu1HorNYTFeB02hhhBrWSMuyHjB boqv5d9ueTqmf176EVGT++TOm7oR4T6SxYM2tXJmZ6R+lz6HhEZSlmNIKGuzZpjb khQXRiNEn0WtHv4egQ8nFpvtXuRpUebrcYy3k7kCQ0Ybmni4Ty9oupd5DQ7O7P/J nvc3gjvyMZe3IbmQlZ0VTtf9WYGJsiSRffuS+vNH6+wdUd3Qxv1bAqi1gbjwq/B9 KrJOVvk4g/R40/FAMnWw7YRHfmFab9PtDarqtlhcsOqvAismM0LlHehmH/DA0SGS v2UzmA1/z1vsyB4kWPyWDn6SvFA3es7ctoRr4QPmmWS47xJUqzIz0LRQqj6J46Qq W05f44wbZlhltfTdjpQOkezHIT0gSgkJWJ7/oonogNwe8YMesn47KaRWkwvfQ3m6 9yZWPUnhjy15UDOjRxF1RB3STYfknGwEBsN2/IG83YiUMa7EMRDoheQU7iG1HtYl U9+7gWOq1Q+HRQI7V35A4wo3FD+jAQ1228rGVZEHp5OOoUHcpWg= =5Jea -----END PGP SIGNATURE----- --qvmOmeDwcQoEJ9EE--