public inbox for gdb@sourceware.org
 help / color / mirror / Atom feed
* Script autoloading
@ 2018-08-01  6:21 Jan Vrany
  2018-08-08 14:43 ` Tom Tromey
  0 siblings, 1 reply; 4+ messages in thread
From: Jan Vrany @ 2018-08-01  6:21 UTC (permalink / raw)
  To: gdb

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2018-09-04 18:22 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-08-01  6:21 Script autoloading Jan Vrany
2018-08-08 14:43 ` Tom Tromey
2018-08-15  8:09   ` Jan Vrany
2018-09-04 18:22     ` Tom Tromey

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).