This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: [RFC] gdb_realpath causes problems with GVD
- From: Andrew Cagney <ac131313 at cygnus dot com>
- To: Joel Brobecker <brobecker at ACT-Europe dot FR>
- Cc: gdb-patches at sources dot redhat dot com
- Date: Tue, 19 Mar 2002 13:29:41 -0500
- Subject: Re: [RFC] gdb_realpath causes problems with GVD
- References: <20020319171236.D6465@act-europe.fr>
Joel,
I suspect you're right.
Two comments:
I think gdb_realpath() needs a re-name - it no longer implements
realpath() semantics. xfullpath() comes to mind (`x' for `xmalloc',
`fullpath' cos it is close to realpath :-) (Better ideas? Does libiberty
already provide an equivalent?)
I don't think trying to rewriting the gdb_realpath() autoconfigury magic
is a good idea (the rewrite as two comile errors). Instead just assume
that gdb_realpath() works and use that, concat() and xfree(). I think
the first rule of autoconf is, if it ain't `broke' don't fix it :-)(1)
enjoy,
Andrew
(1) Yes, I know, I've got that NULL canonicalize patch to commit :-)