diff options
author | Hannes Domani <ssbssa@yahoo.de> | 2020-05-13 12:35:51 +0200 |
---|---|---|
committer | Hannes Domani <ssbssa@yahoo.de> | 2020-07-08 20:50:43 +0200 |
commit | 6e2469ff7afa5134cb55154212e10f25b9e7b2dd (patch) | |
tree | 3e5d15ae2606efebf9343eb31c1001dbb87fb0cc /gdb/doc | |
parent | d1076c4151af8e8d4a343906d2ed1e26cb7809eb (diff) | |
download | gdb-6e2469ff7afa5134cb55154212e10f25b9e7b2dd.zip gdb-6e2469ff7afa5134cb55154212e10f25b9e7b2dd.tar.gz gdb-6e2469ff7afa5134cb55154212e10f25b9e7b2dd.tar.bz2 |
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'.
Diffstat (limited to 'gdb/doc')
-rw-r--r-- | gdb/doc/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/doc/gdb.texinfo | 4 |
2 files changed, 9 insertions, 0 deletions
diff --git a/gdb/doc/ChangeLog b/gdb/doc/ChangeLog index ee6a866..0538115 100644 --- a/gdb/doc/ChangeLog +++ b/gdb/doc/ChangeLog @@ -1,3 +1,8 @@ +2020-07-08 Hannes Domani <ssbssa@yahoo.de> + + * gdb.texinfo: Document Windows drive conversion of + 'set auto-load scripts-directory'. + 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com> * gdb.texi (Registers): Add @anchor for 'info registers diff --git a/gdb/doc/gdb.texinfo b/gdb/doc/gdb.texinfo index fb6fd9e..1514ff1 100644 --- a/gdb/doc/gdb.texinfo +++ b/gdb/doc/gdb.texinfo @@ -27340,6 +27340,10 @@ script in the specified extension language. If this file does not exist, then @value{GDBN} will look for @var{script-name} file in all of the directories as specified below. +(On MS-Windows/MS-DOS, the drive letter of the executable's leading +directories is converted to a one-letter subdirectory, i.e.@: +@file{d:/usr/bin/} is converted to @file{/d/usr/bin/}, because Windows +filesystems disallow colons in file names.) Note that loading of these files requires an accordingly configured @code{auto-load safe-path} (@pxref{Auto-loading safe path}). |