This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: RFA gdb/utils.c (gdb_realpath) fallback patch for sco3.2v5
- From: Andrew Cagney <ac131313 at cygnus dot com>
- To: rbrown64 at csc dot com dot au
- Cc: gdb-patches at sources dot redhat dot com
- Date: Wed, 20 Feb 2002 10:46:14 -0500
- Subject: Re: RFA gdb/utils.c (gdb_realpath) fallback patch for sco3.2v5
- References: <OF093119D4.CB71C330-ONCA256B66.002E6C30@int.csc.com.au>
> This permits the 0211 snapshot to link & break in main on
> i586-pc-sco3.2v5.0.2 (debugging itself).
> Possibly this should be done with the configury and set a PATH_MAX
> value in config.h using
>
> $ getconf PATH_MAX /
> 1024
Jason Thorp pointed out similar issues with the code.
We can't define PATH_MAX since that would polute the system name space
(cf the true/false problem). However, a namespace proof GDB_PATH_MAX
might just do the trick. Getting it via configury could be tricky
though - it needs to be a compile time, rather than runtime, test.
Hmm, perhaphs autoconf has already solved this problem?
Anyway, yes ok to the change.
Andrew