This is the mail archive of the archer@sourceware.org mailing list for the Archer project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: RFC: user auto-load directory


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]