From: Jan Kratochvil <jan.kratochvil@redhat.com>
To: Joel Brobecker <brobecker@adacore.com>
Cc: gdb-patches@sourceware.org
Subject: Re: [patch 2/2] Implement multi-component --with-auto-load-dir
Date: Fri, 11 May 2012 18:47:00 -0000 [thread overview]
Message-ID: <20120511172350.GA19778@host2.jankratochvil.net> (raw)
In-Reply-To: <20120509205119.GN15555@adacore.com>
On Wed, 09 May 2012 22:51:19 +0200, Joel Brobecker wrote:
> > With Fedora scl-utils ("alternative packaging") you have both regular
> > /usr/share/gdb/auto-load/
> > and also the "alternative"
> > /opt/rh/upgradeset/root/usr/share/gdb/auto-load/
>
> I see. I wish we could manage both with one setting. Since we need
> a "list" of directories, I'd keep "auto-load script-dir" (should we make
> that script-dir plural?)...
We already have multi-directory "set debug-file-directory".
(It may be called so as it was a single directory in the past; OTOH if you
insist on dir/directories we should rename it and make the original setting
obsolete-compatible.)
We also have command "directory" which properly parses multiple directories:
(gdb) directory /tmp/a:/tmp/b
Warning: /tmp/a: No such file or directory.
Warning: /tmp/b: No such file or directory.
Source directories searched: /tmp/a:/tmp/b:$cdir:$cwd
We can argue about singular vs. plural form like there are many reasons for
both cases in which form to name SQL tables.
> I can see how things can be awkward for turning the safety guard off
> (the equivalent of what we used to do with "auto-load safe-path").
> I think I'd just make that a boolean setting instead.
Do you mean to make 'auto-load safe-path [on|off]'? This would be
coincidentally fine for me as I both face untrusted inferiors and I dislike
any auto-loads. But it would be too dangerous for anyone who likes
auto-loaded scripts and who also faces untrusted inferiors.
> > > debugging /work/build/gcc-feature-a/gcc/cc1, you don't need to have
> > > cc1-gdb.gdb defined in your auto-load directory as
> > > auto-load/work/build/gcc-feature-a/gcc/cc1-gdb.gdb. It'd just be
> > > sufficient to have cc1-gdb.gdb defined in your scripts-directory.
[...]
> No, they are not related, and you shouldn't have to worry about that
> (unless you want to!). It's a feature I think some users would enjoy
> having, but if I want it, I should be the one taking care of the
> implementation.
I understand it would be useful; I just do not like any auto-loads myself to
try figure out the best way to do it. Also /usr/share/gdb/auto-load/ has
never been an idea of mine.
Thanks,
Jan
prev parent reply other threads:[~2012-05-11 18:47 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-05-09 15:49 Jan Kratochvil
2012-05-09 17:50 ` Eli Zaretskii
2012-05-09 18:04 ` Jan Kratochvil
2012-05-09 18:45 ` Eli Zaretskii
2012-05-09 18:44 ` [doc patch] path vs. directory separator [Re: [patch 2/2] Implement multi-component --with-auto-load-dir] Jan Kratochvil
2012-05-09 19:21 ` Eli Zaretskii
2012-05-09 19:30 ` [commit] " Jan Kratochvil
2012-05-09 18:55 ` [patch 2/2] Implement multi-component --with-auto-load-dir Jan Kratochvil
2012-05-09 19:23 ` Eli Zaretskii
2012-05-11 18:21 ` [commit] " Jan Kratochvil
2012-05-09 20:18 ` Joel Brobecker
2012-05-09 20:34 ` Jan Kratochvil
2012-05-09 20:51 ` Joel Brobecker
2012-05-11 18:47 ` Jan Kratochvil [this message]
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=20120511172350.GA19778@host2.jankratochvil.net \
--to=jan.kratochvil@redhat.com \
--cc=brobecker@adacore.com \
--cc=gdb-patches@sourceware.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