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: RFA gdb/utils.c (gdb_realpath) fallback patch for sco3.2v5


> 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




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