From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: 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 From: Mike Frysinger To: Hans-Peter Nilsson Cc: gdb-patches@sourceware.org, hp@axis.com 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-Spam-Status: No, score=-5.5 required=5.0 tests=BAYES_00, KAM_DMARC_STATUS, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, SPF_HELO_PASS, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE 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-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: , X-List-Received-Date: Tue, 22 Feb 2022 03:29:53 -0000 --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--