diff options
author | Andrew Cagney <cagney@redhat.com> | 2002-11-14 00:50:04 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 2002-11-14 00:50:04 +0000 |
commit | 6411e720c0ace296476757913bc787878cd87989 (patch) | |
tree | ecb72d98056cc5a6ce081b3d51852c470dd103d0 | |
parent | 73937e031a946d29ddfff632d478c904fed8d6ff (diff) | |
download | gdb-6411e720c0ace296476757913bc787878cd87989.zip gdb-6411e720c0ace296476757913bc787878cd87989.tar.gz gdb-6411e720c0ace296476757913bc787878cd87989.tar.bz2 |
Wed Nov 13 19:51:05 2002 Andrew Cagney <cagney@redhat.com>
* utils.c (gdb_realpath): Add comment mentioning realpath with a
NULL buffer.
-rw-r--r-- | gdb/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/utils.c | 9 |
2 files changed, 14 insertions, 0 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index ed1bcdf..157d534 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -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 diff --git a/gdb/utils.c b/gdb/utils.c index 62e4020..06fb593 100644 --- a/gdb/utils.c +++ b/gdb/utils.c @@ -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 |