Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: rbrown64@csc.com.au
To: gdb-patches@sources.redhat.com
Subject: RFA gdb/utils.c (gdb_realpath) fallback patch for sco3.2v5
Date: Wed, 20 Feb 2002 00:39:00 -0000	[thread overview]
Message-ID: <OF093119D4.CB71C330-ONCA256B66.002E6C30@int.csc.com.au> (raw)

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

2002-02-20  Rodney Brown  <rbrown64@csc.com.au>

      * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.

*** utils.c.orig Sun Feb 10 14:08:42 2002
--- utils.c Wed Feb 20 19:30:16 2002
***************
*** 2522,2527 ****
    char buf[PATH_MAX];
  #elif defined (MAXPATHLEN)
    char buf[MAXPATHLEN];
  #else
  #error "Neither PATH_MAX nor MAXPATHLEN defined"
  #endif
--- 2522,2529 ----
    char buf[PATH_MAX];
  #elif defined (MAXPATHLEN)
    char buf[MAXPATHLEN];
+ #elif defined (HAVE_UNISTD_H) && defined(HAVE_ALLOCA)
+   char *buf = alloca ((size_t)pathconf ("/", _PC_PATH_MAX));
  #else
  #error "Neither PATH_MAX nor MAXPATHLEN defined"
  #endif


             reply	other threads:[~2002-02-20  8:39 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-02-20  0:39 rbrown64 [this message]
2002-02-20  7:46 ` Andrew Cagney
2002-02-20  7:47 ` Andrew Cagney

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=OF093119D4.CB71C330-ONCA256B66.002E6C30@int.csc.com.au \
    --to=rbrown64@csc.com.au \
    --cc=gdb-patches@sources.redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox