From: Jan Kratochvil <jan.kratochvil@redhat.com>
To: Joel Brobecker <brobecker@adacore.com>
Cc: Tom Tromey <tromey@redhat.com>, gdb-patches@sourceware.org
Subject: [patch] Fix the 2012-01-26 regression by la_get_symbol_name_match_p [Re: Crash regression gdb.cp/no-dmgl-verbose.exp]
Date: Fri, 27 Jan 2012 17:09:00 -0000 [thread overview]
Message-ID: <20120127170035.GA9056@host2.jankratochvil.net> (raw)
In-Reply-To: <20120127051509.GV31383@adacore.com>
On Fri, 27 Jan 2012 06:15:09 +0100, Joel Brobecker wrote:
> What if you put strcmp_iw_ordered back in the following hunk?
No change.
It has started to expand all the symtabs now, it is nice it at least found the
bug
PR symtab/13627 multiple .debug_types per objfile are not supported
but it should be fixed. I will check in the patch below, it seems all the
functions return strcmp-like result.
No regressions on {x86_64,x86_64-m32,i686}-fedorarawhide-linux-gnu.
Your patch had:
## -328,9 +339,9 @@ static int
iterate_name_matcher (const struct language_defn *language,
const char *name, void *d)
{
- const char **dname = d;
+ const struct symbol_matcher_data *data = d;
- if (language->la_symbol_name_compare (name, *dname) == 0)
+ if (data->symbol_name_match_p (name, data->lookup_name))
return 1;
return 0;
}
Thanks,
Jan
gdb/
2012-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
Fix the 2012-01-26 regression by la_get_symbol_name_match_p.
* linespec.c (iterate_name_matcher): Negate the SYMBOL_NAME_MATCH_P
result.
--- a/gdb/linespec.c
+++ b/gdb/linespec.c
@@ -340,7 +340,7 @@ iterate_name_matcher (const char *name, void *d)
{
const struct symbol_matcher_data *data = d;
- if (data->symbol_name_match_p (name, data->lookup_name))
+ if (data->symbol_name_match_p (name, data->lookup_name) == 0)
return 1;
return 0;
}
next prev parent reply other threads:[~2012-01-27 17:01 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-12-14 14:36 [RFC] allow unqualified function names in linespecs Joel Brobecker
2011-12-20 15:24 ` Tom Tromey
2011-12-21 14:08 ` Joel Brobecker
2011-12-23 10:39 ` unqualified function names in linespecs in Ada... (try #2) Joel Brobecker
2011-12-23 10:39 ` [RFA 2/3] Ada: allow unqualified function names in linespecs Joel Brobecker
2012-01-12 3:13 ` Joel Brobecker
2012-01-19 15:40 ` Joel Brobecker
2012-01-24 19:41 ` Tom Tromey
2012-01-26 4:23 ` Joel Brobecker
2012-01-26 10:22 ` Crash regression gdb.cp/no-dmgl-verbose.exp: " Jan Kratochvil
2012-01-26 10:55 ` Jan Kratochvil
2012-01-27 5:15 ` Jan Kratochvil
2012-01-27 5:25 ` Joel Brobecker
2012-01-27 17:09 ` Jan Kratochvil [this message]
2012-01-27 19:27 ` [patch] Fix the 2012-01-26 regression by la_get_symbol_name_match_p [Re: Crash regression gdb.cp/no-dmgl-verbose.exp] Joel Brobecker
2012-01-27 20:33 ` [commit] " Jan Kratochvil
2011-12-23 10:39 ` [commit/Ada 1/3] New function ada-lang.c:should_use_wild_match Joel Brobecker
2011-12-27 4:27 ` Checked in: " Joel Brobecker
2011-12-23 11:01 ` [RFA 3/3] Remove language param from name_matcher in struct quick_symbol_functions Joel Brobecker
2012-01-12 4:30 ` Joel Brobecker
2012-01-19 15:47 ` Joel Brobecker
2012-01-24 19:45 ` Tom Tromey
2012-01-26 4:57 ` Joel Brobecker
2012-01-24 19:17 ` [RFC] allow unqualified function names in linespecs 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=20120127170035.GA9056@host2.jankratochvil.net \
--to=jan.kratochvil@redhat.com \
--cc=brobecker@adacore.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