Improve Executable displayed path (PR 15415 regression kind #2)
authorJan Kratochvil <jan.kratochvil@redhat.com>
Sun, 13 Oct 2013 16:11:08 +0000 (16:11 +0000)
committerJan Kratochvil <jan.kratochvil@redhat.com>
Sun, 13 Oct 2013 16:11:08 +0000 (16:11 +0000)
commit4856b6bc835e25ab0f48462104152701c864858c
treea9cdb2e19fc8c02072765dbf3ac49043ddbcb4ac
parent690f47bf982493bf41a09238d38e9a934411f214
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.
gdb/ChangeLog
gdb/exec.c
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.base/argv0-symlink.exp
gdb/utils.c
gdb/utils.h