]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
Handle Windows drives in auto-load script paths
authorHannes Domani <ssbssa@yahoo.de>
Wed, 13 May 2020 10:35:51 +0000 (12:35 +0200)
committerHannes Domani <ssbssa@yahoo.de>
Wed, 8 Jul 2020 18:50:43 +0000 (20:50 +0200)
commit6e2469ff7afa5134cb55154212e10f25b9e7b2dd
tree3e5d15ae2606efebf9343eb31c1001dbb87fb0cc
parentd1076c4151af8e8d4a343906d2ed1e26cb7809eb
Handle Windows drives in auto-load script paths

Fixes this testsuite fail on Windows:
FAIL: gdb.base/auto-load.exp: print $script_loaded

Converts the debugfile path from c:/dir/file to /c/dir/file, so it can be
appended to the auto-load path.

gdb/ChangeLog:

2020-07-08  Hannes Domani  <ssbssa@yahoo.de>

* auto-load.c (auto_load_objfile_script_1): Convert drive part
of debugfile path on Windows.

gdb/doc/ChangeLog:

2020-07-08  Hannes Domani  <ssbssa@yahoo.de>

* gdb.texinfo: Document Windows drive conversion of
'set auto-load scripts-directory'.
gdb/ChangeLog
gdb/auto-load.c
gdb/doc/ChangeLog
gdb/doc/gdb.texinfo