From: Daniel Jacobowitz <drow@false.org>
To: gdb-patches@sources.redhat.com
Subject: Re: [RFA] maintenance_print_msymbols: Try harder to match files
Date: Mon, 02 May 2005 20:07:00 -0000 [thread overview]
Message-ID: <20050502200720.GA9490@nevyn.them.org> (raw)
In-Reply-To: <20050502200515.GA1204@adacore.com>
On Mon, May 02, 2005 at 01:05:15PM -0700, Joel Brobecker wrote:
> > The xfullpath call doesn't do what you think it does:
> >
> > /* Extract the basename of filename, and return immediately
> > a copy of filename if it does not contain any directory prefix. */
> > if (base_name == filename)
> > return xstrdup (filename);
> >
> > I've got no idea at all why that is there. Joel added this function;
> > maybe he can explain.
>
> I don't remember all the details, I could dig up the relevant messages
> if necessary. But the comment at the begining of the function seems to
> confirm that this code is correct to be here:
>
> /* Return a copy of FILENAME, with its directory prefix canonicalized
> by gdb_realpath. */
>
> Perhaps the function is incorrectly named, though (misleading)...
> Should we consider finding a more meaningful name?
I would rather see an example of why the current behavior is correct,
first.
--
Daniel Jacobowitz
CodeSourcery, LLC
next prev parent reply other threads:[~2005-05-02 20:07 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-01-24 21:09 Corinna Vinschen
2005-05-01 23:37 ` Daniel Jacobowitz
2005-05-02 19:20 ` Eli Zaretskii
2005-05-02 19:46 ` Eli Zaretskii
2005-05-02 20:05 ` Joel Brobecker
2005-05-02 20:07 ` Daniel Jacobowitz [this message]
2005-05-02 20:18 ` Joel Brobecker
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=20050502200720.GA9490@nevyn.them.org \
--to=drow@false.org \
--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