Improve Executable displayed path (PR 15415 regression kind #2)
gdb/ 2013-10-13 Jan Kratochvil <jan.kratochvil@redhat.com> Canonicalize directories for EXEC_FILENAME. * exec.c (exec_file_attach): Use gdb_realpath_keepfile for exec_filename. * utils.c (gdb_realpath_keepfile): New function. * utils.h (gdb_realpath_keepfile): New declaration. gdb/testsuite/ 2013-10-13 Jan Kratochvil <jan.kratochvil@redhat.com> Canonicalize directories for EXEC_FILENAME. * gdb.base/argv0-symlink.exp (kept file symbolic link name for info inferiors): New. (kept directory symbolic link name): Setup kfail. (kept directory symbolic link name for info inferiors): New.
This commit is contained in:
parent
690f47bf98
commit
4856b6bc83
6 changed files with 71 additions and 1 deletions
|
@ -224,7 +224,7 @@ exec_file_attach (char *filename, int from_tty)
|
|||
}
|
||||
|
||||
gdb_assert (exec_filename == NULL);
|
||||
exec_filename = xstrdup (scratch_pathname);
|
||||
exec_filename = gdb_realpath_keepfile (scratch_pathname);
|
||||
|
||||
if (!bfd_check_format_matches (exec_bfd, bfd_object, &matching))
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue