From: Andrew Cagney <ac131313@redhat.com>
To: Andrew Cagney <ac131313@redhat.com>
Cc: gdb-patches@sources.redhat.com
Subject: Re: [patch / rfc / 5.3] Attempt N++ for gdb_realpath()
Date: Tue, 12 Nov 2002 12:28:00 -0000 [thread overview]
Message-ID: <3DD16452.2050209@redhat.com> (raw)
In-Reply-To: <3DD13854.4010407@redhat.com>
[-- Attachment #1: Type: text/plain, Size: 382 bytes --]
>
> 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().
Well so far not badly. The attached fixes a -Werror problem though.
Andrew
[-- Attachment #2: diffs --]
[-- Type: text/plain, Size: 600 bytes --]
2002-11-12 Andrew Cagney <ac131313@redhat.com>
* utils.c (gdb_realpath): Make rp a constant pointer.
Index: utils.c
===================================================================
RCS file: /cvs/src/src/gdb/utils.c,v
retrieving revision 1.84
diff -u -r1.84 utils.c
--- utils.c 12 Nov 2002 17:19:06 -0000 1.84
+++ utils.c 12 Nov 2002 20:25:15 -0000
@@ -2718,7 +2718,7 @@
# define USE_REALPATH
# endif
# if defined (USE_REALPATH)
- char *rp = realpath (filename, buf);
+ const char *rp = realpath (filename, buf);
if (rp == NULL)
rp = filename;
return xstrdup (rp);
prev parent reply other threads:[~2002-11-12 20:28 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-11-11 8:48 Andrew Cagney
2002-11-12 9:20 ` Andrew Cagney
2002-11-12 12:28 ` Andrew Cagney [this message]
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=3DD16452.2050209@redhat.com \
--to=ac131313@redhat.com \
--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