]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
Fix relocation of directories in the MinGW build.
authorEli Zaretskii <eliz@gnu.org>
Sat, 23 Mar 2013 10:48:23 +0000 (10:48 +0000)
committerEli Zaretskii <eliz@gnu.org>
Sat, 23 Mar 2013 10:48:23 +0000 (10:48 +0000)
commitb5981e5adfd788f7cc7c062a8734a8311efda010
treea419e457c3ab6694dba25dcd10c07635af2a3368
parent8a56bd02519985bc5f86fbe7bff927018d5880e6
Fix relocation of directories in the MinGW build.

 windows-nat.c (windows_get_absolute_argv0): New function.
 windows-nat.h: Add its prototype.
 main.c (get_init_files): Use filename_ncmp instead of strncmp.
 Use IS_DIR_SEPARATOR instead of looking for a character inside
 SLASH_STRING.  Include filenames.h.
 (captured_main) [__MINGW32__]: Make argv[0] absolute, so that
 relocate_gdb_directory works when passed gdb_program_name.
 Include windows-nat.h.
gdb/ChangeLog
gdb/main.c
gdb/windows-nat.c
gdb/windows-nat.h