This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [patch / rfc / 5.3] Attempt N++ for gdb_realpath()


Hello,

This is trying to fix http://sources.redhat.com/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gdb&pr=656

It breaks the host system down into:

- realpath() and constant pathmax

- canonicalize file name

- realpath() and pathconf()

- xstrdup()

realpath() is split into two cases - the easy / common one and the nasty horrible pathconf() one.  The latter (which was causing grief on GNU) has been moved to the end.

comments?  For 5.3 and mainline.
I've checked this in.  Now to see what breaks :-/

Andrew


2002-11-09  Andrew Cagney  <ac131313@redhat.com>

	* utils.c (gdb_realpath): Rewrite.  Try realpath() with a constant
	buffer, cannonicalize_file_name(), realpath() with a pathconf()
	defined buffer, xstrdup().



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]