From: Mike Frysinger <vapier@gentoo.org>
To: Hans-Peter Nilsson <hp@bitrange.com>
Cc: gdb-patches@sourceware.org, hp@axis.com
Subject: Re: [PATCH] sim: gdbinit: hoist setup to common code
Date: Mon, 21 Feb 2022 22:29:50 -0500 [thread overview]
Message-ID: <YhRYrgyGDL96KEL0@vapier> (raw)
In-Reply-To: <alpine.BSF.2.20.16.2202212206050.42702@arjuna.pair.com>
[-- Attachment #1: Type: text/plain, Size: 787 bytes --]
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.
>
> The .gdbinit file doesn't do much good in the sim/ directory
> instead of sim/<subdir> where the "run" program is located (such
> that .gdbinit is loaded when you start gdb there to debug it).
>
> Make a symlink in sim/<subdir>?
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
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
next prev parent reply other threads:[~2022-02-22 3:29 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-02-17 5:40 Mike Frysinger
2022-02-22 3:09 ` Hans-Peter Nilsson
2022-02-22 3:29 ` Mike Frysinger [this message]
2022-02-22 3:36 ` [PATCH] sim: add arch/.gdbinit stub scripts Mike Frysinger
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=YhRYrgyGDL96KEL0@vapier \
--to=vapier@gentoo.org \
--cc=gdb-patches@sourceware.org \
--cc=hp@axis.com \
--cc=hp@bitrange.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).