This is the mail archive of the
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: <email@example.com> <firstname.lastname@example.org>
On Mon, Jan 5, 2009 at 3:59 PM, Tom Tromey <email@example.com> wrote:
>>>>>> "Jim" == Jim Blandy <firstname.lastname@example.org> 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.