Script autoloading
Tom Tromey
tom@tromey.com
Tue Sep 4 18:22:00 GMT 2018
>>>>> "Jan" == Jan Vrany <jan.vrany@fit.cvut.cz> 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
More information about the Gdb
mailing list