Re: Script autoloading

Tom Tromey <[email protected]>
Newsgroups gmane.comp.gdb.devel
Message-ID <[email protected]>
>>>>> "Jan" == Jan Vrany <[email protected]> writes:

Sorry for not responding to this earlier.

Jan> Any idea how to make it working on both, Linux and Windows with
Jan> no additional setup (other than autoload-safe path)? What's is the 
Jan> rationale for excluding $cdir from source directories when searching
Jan> for scipts?

[...]

Jan> Adding $cdir would solve this problem. The documentation also says: 

Jan>    For object files using .exe suffix GDB tries to load first the 
Jan>    scripts normally according to its .exe filename. But if no scripts 
Jan>    are found GDB also tries script filenames matching the object 
Jan>    file without its .exe suffix. This .exe stripping is case 
Jan>    insensitive and it is attempted on any platform. This makes the
Jan>    script filenames compatible between Unix and MS-Windows hosts. 

Jan> Maybe we can have similar automagic for .so / .dll / .dylib 
Jan> extensions. 

Jan> I'm ready to write a patch and submit it, unless there's a reason for
Jan> current behavior. 

I couldn't think of a reason, so why not go ahead.  The only risk you
have is of someone thinking of a reason during patch review,

Tom
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.