From: Joel Brobecker <brobecker@adacore.com>
To: Reuben Thomas <rrt@sc3d.org>
Cc: Reuben Thomas via Gdb <gdb@sourceware.org>
Subject: Re: Adding Python files to be autoloaded for a particular architecture
Date: Fri, 17 Jul 2020 15:14:03 -0700 [thread overview]
Message-ID: <20200717221403.GV5016@adacore.com> (raw)
In-Reply-To: <CAOnWdoi6reVcrABGqqby5APB049oiD-2yZ0u-YTrTQttmukYUw@mail.gmail.com>
> > You can try with --with-system-gdbinit=xxx instead.
> >
>
> Thanks, but surely --with-system-gdbinit is designed for the system
> administrator? For example, on Debian, the supplied gdb is configured with
> --with-system-gdbinit=/etc/gdb/gdbinit. I don't want to conflict with this
> usage.
I don't think you can categorize the intended user of each option.
They just do different things.
> We can probably delete these two files, if no one else finds them useful
> > anymore. But I don't think you really want to use GDB's system-gdbinit
> > as a system-gdbinit-dir; generally speaking, my understand of the
> > directory provided in the GDB sources is that it's a collection of
> > files that are not necessarily meant to always be relevant.
>
> Ah, OK, so I should instead configure with a different
> --with-system-gdbinit-dir? But how can I get my files installed in that
> directory? It seems like this is not something I can do with gdb's build
> system.
>
> So should I be using a different route to get an architecture support file
> always installed and loaded?
Thinking out loud (I do not know all the details off the top of my head),
I see a couple of ways:
- You use a subdirectory of system-gdbinit, and then configure GDB
to use that subdirectory
- You create one file that the sources all the other files you need,
and then configure GDB to use that file as the system-gdbinit.
--
Joel
next prev parent reply other threads:[~2020-07-17 22:14 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-07-17 16:11 Reuben Thomas
2020-07-17 21:42 ` Joel Brobecker
2020-07-17 22:03 ` Reuben Thomas
2020-07-17 22:09 ` Christian Biesinger
2020-07-17 22:21 ` Reuben Thomas
2020-07-17 22:31 ` Christian Biesinger
2020-07-17 22:37 ` Reuben Thomas
2020-07-20 20:26 ` Christian Biesinger
2020-07-20 21:39 ` Reuben Thomas
2020-07-17 22:14 ` Joel Brobecker [this message]
2020-07-17 22:18 ` Reuben Thomas
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=20200717221403.GV5016@adacore.com \
--to=brobecker@adacore.com \
--cc=gdb@sourceware.org \
--cc=rrt@sc3d.org \
/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).