Script autoloading
Jan Vrany
jan.vrany@fit.cvut.cz
Wed Aug 1 06:21:00 GMT 2018
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
More information about the Gdb
mailing list