Wed Nov 13 19:51:05 2002 Andrew Cagney <cagney@redhat.com>
authorAndrew Cagney <cagney@redhat.com>
Thu, 14 Nov 2002 00:50:04 +0000 (00:50 +0000)
committerAndrew Cagney <cagney@redhat.com>
Thu, 14 Nov 2002 00:50:04 +0000 (00:50 +0000)
* utils.c (gdb_realpath): Add comment mentioning realpath with a
  NULL buffer.

gdb/ChangeLog
gdb/utils.c

index ed1bcdf9d589aa0ef5bea66d0e61a4f24d7ed394..157d534f74fea8c66ee2cd9f284b1ef30895e5d5 100644 (file)
@@ -1,3 +1,8 @@
+Wed Nov 13 19:51:05 2002  Andrew Cagney  <cagney@redhat.com>
+
+       * utils.c (gdb_realpath): Add comment mentioning realpath with a
+       NULL buffer.
+
 2002-11-13  Andrew Cagney  <cagney@redhat.com>
 
        * regcache.h (deprecated_read_register_bytes): Rename
index 62e4020eb32f3cdedd094fe594a564894894b450..06fb5938d5ba7e14547f238534cd3978ff270848 100644 (file)
@@ -2739,6 +2739,15 @@ gdb_realpath (const char *filename)
   }
 #endif
 
+  /* FIXME: cagney/2002-11-13:
+
+     Method 2a: Use realpath() with a NULL buffer.  Some systems, due
+     to the problems described in in method 3, have modified their
+     realpath() implementation so that it will allocate a buffer when
+     NULL is passed in.  Before this can be used, though, some sort of
+     configure time test would need to be added.  Otherwize the code
+     will likely core dump.  */
+
   /* Method 3: Now we're getting desperate!  The system doesn't have a
      compile time buffer size and no alternative function.  Query the
      OS, using pathconf(), for the buffer limit.  Care is needed
This page took 0.030799 seconds and 4 git commands to generate.