+2020-07-08 Hannes Domani <ssbssa@yahoo.de>
+
+ * auto-load.c (auto_load_objfile_script_1): Convert drive part
+ of debugfile path on Windows.
+
2020-07-08 John Baldwin <jhb@FreeBSD.org>
* fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
"scripts-directory' path \"%s\".\n"),
auto_load_dir);
+ /* Convert Windows file name from c:/dir/file to /c/dir/file. */
+ if (HAS_DRIVE_SPEC (debugfile))
+ {
+ debugfile_holder = STRIP_DRIVE_SPEC (debugfile);
+ filename = std::string("\\") + debugfile[0] + debugfile_holder;
+ }
+
for (const gdb::unique_xmalloc_ptr<char> &dir : vec)
{
/* FILENAME is absolute, so we don't need a "/" here. */
+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
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}).