diff options
author | Jan Kratochvil <jan.kratochvil@redhat.com> | 2013-10-13 16:11:08 +0000 |
---|---|---|
committer | Jan Kratochvil <jan.kratochvil@redhat.com> | 2013-10-13 16:11:08 +0000 |
commit | 4856b6bc835e25ab0f48462104152701c864858c (patch) | |
tree | a9cdb2e19fc8c02072765dbf3ac49043ddbcb4ac /gdb/utils.h | |
parent | 690f47bf982493bf41a09238d38e9a934411f214 (diff) | |
download | gdb-4856b6bc835e25ab0f48462104152701c864858c.zip gdb-4856b6bc835e25ab0f48462104152701c864858c.tar.gz gdb-4856b6bc835e25ab0f48462104152701c864858c.tar.bz2 |
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/utils.h')
-rw-r--r-- | gdb/utils.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gdb/utils.h b/gdb/utils.h index 7ea0ff4..2082511 100644 --- a/gdb/utils.h +++ b/gdb/utils.h @@ -128,6 +128,8 @@ extern struct cleanup *make_bpstat_clear_actions_cleanup (void); extern char *gdb_realpath (const char *); +extern char *gdb_realpath_keepfile (const char *); + extern int gdb_filename_fnmatch (const char *pattern, const char *string, int flags); |