This is the mail archive of the
archer@sourceware.org
mailing list for the Archer project.
Re: RFC: user auto-load directory
- From: "Jim Blandy" <jimb at red-bean dot com>
- To: "Tom Tromey" <tromey at redhat dot com>
- Cc: archer at sourceware dot org
- Date: Tue, 6 Jan 2009 10:50:47 -0800
- Subject: Re: RFC: user auto-load directory
- References: <8f2776cb0812301715l4154373dj6b1357bac3792647@mail.gmail.com> <m3bpuli9ti.fsf@fleche.redhat.com>
On Mon, Jan 5, 2009 at 3:59 PM, Tom Tromey <tromey@redhat.com> wrote:
>>>>>> "Jim" == Jim Blandy <jimb@red-bean.com> writes:
>
> Jim> This patch adds a new parameter, 'maintenance set/show python
> Jim> auto-load-user-directory', naming a directory that GDB searches for
> Jim> Python scripts for loaded objfiles. It just uses the basename of the
> Jim> objfile.
>
> Jim> If folks think the idea is good, I'll write docs.
>
> I think it is a good idea.
>
> Do we want something more generic? A hook, or a rewrite rule?
A list of functions to apply to each new objfile? (Is there some
Pythonic convention for writing hooks?)
> Jim> Perhaps we should load the file we find in auto-load-user-directory
> Jim> after also loading files we find by the existing rules?
>
> Yeah, sounds good to me.
Okay. I'll see what I can moosh in to that effect.