diff options
author | Jan Kratochvil <jan.kratochvil@redhat.com> | 2013-10-13 16:11:07 +0000 |
---|---|---|
committer | Jan Kratochvil <jan.kratochvil@redhat.com> | 2013-10-13 16:11:07 +0000 |
commit | 725e567b57557602e3b0ba50931086fe1df5f757 (patch) | |
tree | 75943efd5c654a395a926425aafe78fb3306fa92 /gdb/exec.c | |
parent | 4f7d2fdf43497f8ca82e3ebc40f955a3af1e1ade (diff) | |
download | gdb-725e567b57557602e3b0ba50931086fe1df5f757.tar.gz |
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.
Diffstat (limited to 'gdb/exec.c')
-rw-r--r-- | gdb/exec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/exec.c b/gdb/exec.c index c7370e3d40b..758cdc10ed1 100644 --- a/gdb/exec.c +++ b/gdb/exec.c @@ -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)) { |