aboutsummaryrefslogtreecommitdiff
path: root/gdb/utils.c
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2002-02-23 21:54:25 +0000
committerAndrew Cagney <cagney@redhat.com>2002-02-23 21:54:25 +0000
commit27aac7ff48e06d83f102a463685bc61469c8265b (patch)
treecbe9eb2809627cded0e37797cb3c1b693a498abd /gdb/utils.c
parent65a6e0eee547e96f0d3d949faebb8cac90e01b0c (diff)
downloadgdb-27aac7ff48e06d83f102a463685bc61469c8265b.zip
gdb-27aac7ff48e06d83f102a463685bc61469c8265b.tar.gz
gdb-27aac7ff48e06d83f102a463685bc61469c8265b.tar.bz2
* configure.in: (AC_CHECK_FUNCS) Added test for
canonicalize_file_name Regenerated. * config.in, configure: Regenerated. * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is defined use canonicalize_file_name.
Diffstat (limited to 'gdb/utils.c')
-rw-r--r--gdb/utils.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/gdb/utils.c b/gdb/utils.c
index 627c89e..8646020 100644
--- a/gdb/utils.c
+++ b/gdb/utils.c
@@ -2526,7 +2526,9 @@ string_to_core_addr (const char *my_string)
char *
gdb_realpath (const char *filename)
{
-#ifdef HAVE_REALPATH
+#ifdef HAVE_CANONICALIZE_FILE_NAME
+ return canonicalize_file_name (filename);
+#elif defined (HAVE_REALPATH)
#if defined (PATH_MAX)
char buf[PATH_MAX];
#elif defined (MAXPATHLEN)