From: Jan Kratochvil <jan.kratochvil@redhat.com>
To: Tom Tromey <tromey@redhat.com>
Cc: gdb-patches@sourceware.org
Subject: Re: [patch 7/9] Fix psymtab.c for real and absolute filenames
Date: Fri, 25 Jan 2013 14:48:00 -0000 [thread overview]
Message-ID: <20130125144807.GA16342@host2.jankratochvil.net> (raw)
In-Reply-To: <87ip6ntwlp.fsf@fleche.redhat.com>
On Wed, 23 Jan 2013 22:31:30 +0100, Tom Tromey wrote:
> >>>>> "Jan" == Jan Kratochvil <jan.kratochvil@redhat.com> writes:
>
> Jan> partial symtabs did not handle correctly absolute filenames and they had
> Jan> problems also with expansion on symlinks.
>
- if (! (*file_matcher) (ps->filename, data))
> Jan> + if (!(*file_matcher) (psymtab_to_fullname (ps), data)
> Jan> + && !(*file_matcher) (psymtab_to_realname (ps), data))
> Jan> continue;
>
> Doesn't this tend to eliminate the benefit of using xfullpath?
Primarily xfullpath is gone (in the next patch series) so this change will be
undone there.
This meant:
if ((*file_matcher) (psymtab_to_fullname (ps), data)
|| (*file_matcher) (psymtab_to_realname (ps), data))
do-it.
Which seems correct to me. I do not understand much your comment.
But I see there another bug, that it no longer tests ps->filename, so that it
would not match that "./gdb.base/return.c:main" because fullpath no longer has
that "./" there.
Thanks,
Jan
next prev parent reply other threads:[~2013-01-25 14:48 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-01-17 22:23 Jan Kratochvil
2013-01-23 21:31 ` Tom Tromey
2013-01-25 14:48 ` Jan Kratochvil [this message]
2013-01-25 15:01 ` Tom Tromey
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=20130125144807.GA16342@host2.jankratochvil.net \
--to=jan.kratochvil@redhat.com \
--cc=gdb-patches@sourceware.org \
--cc=tromey@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