Script autoloading

Jan Vrany <[email protected]>
Newsgroups gmane.comp.gdb.devel
Message-ID <[email protected]>
Hi there, 

I have a project that makes use of a shared library, say librun.so. 
That library is part of the project and there's extensive python
script to support debugging. 

This python script is named librun.so-gdb.py so and is located
along librun.so. Thi way. GDB loads automatically.
Works perfect, no extra setup (other autoload-safe path). 

However, I struggle to make this working also on Windows, where the 
library is named "librun.dll", not "librun.so'. 

I thought I'd use .debug_gdb_scripts section as described in 
GDB manual, but this does not work very good since $cdir is 
not searched in that case. 

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

Thanks.

Best, Jan
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.