Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Joel Brobecker <brobecker@adacore.com>
To: gdb-patches@sources.redhat.com
Subject: Re: [RFA] maintenance_print_msymbols: Try harder to match files
Date: Mon, 02 May 2005 20:05:00 -0000	[thread overview]
Message-ID: <20050502200515.GA1204@adacore.com> (raw)
In-Reply-To: <20050501233700.GD4311@nevyn.them.org>

> 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?

-- 
Joel


  parent reply	other threads:[~2005-05-02 20:05 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 [this message]
2005-05-02 20:07     ` Daniel Jacobowitz
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=20050502200515.GA1204@adacore.com \
    --to=brobecker@adacore.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