Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Joel Brobecker <brobecker@adacore.com>
To: Jan Kratochvil <jan.kratochvil@redhat.com>
Cc: gdb-patches@sourceware.org
Subject: Re: [patch 2/2] Implement multi-component --with-auto-load-dir
Date: Wed, 09 May 2012 20:18:00 -0000	[thread overview]
Message-ID: <20120509201743.GL15555@adacore.com> (raw)
In-Reply-To: <20120509154847.GB12692@host2.jankratochvil.net>

Hi Jan,

> currently GDB has hard-coded GDB_DATADIR/auto-load for the auto-loaded
> scripts.  The problem is one may need more of such directories as you may have
> multiple package sets / packages on the same system in different
> subdirectories overriding each other in some order.
> 
> Therefore created 'set auto-load scripts-directory' for it.

I really do not understand what this new setting is about.  Can you
just give me a quick concrete example of what wouldn't work with
the current code, and how this gets solved by the new setting?

I was hoping at some point that this would allow us to have auto-loaded
scripts without having to have the same path structure in the auto-load
directory as in the executable (by that, I mean that if you are
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.
But looking at the code, I don't think that this is what we are
talking about.

-- 
Joel


  parent reply	other threads:[~2012-05-09 20:18 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 [this message]
2012-05-09 20:34   ` Jan Kratochvil
2012-05-09 20:51     ` Joel Brobecker
2012-05-11 18:47       ` Jan Kratochvil

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=20120509201743.GL15555@adacore.com \
    --to=brobecker@adacore.com \
    --cc=gdb-patches@sourceware.org \
    --cc=jan.kratochvil@redhat.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