diff options
author | Jan Kratochvil <jan.kratochvil@redhat.com> | 2012-01-27 20:31:12 +0000 |
---|---|---|
committer | Jan Kratochvil <jan.kratochvil@redhat.com> | 2012-01-27 20:31:12 +0000 |
commit | 6cea5d88f6196bb8ba383f12e3030c7cd8d6877b (patch) | |
tree | b7b2e8d137187482e7fee9d2dc2435e702d24b4a | |
parent | 0708ebd80509c20345fdc9bc298c0b533e4b6a2e (diff) | |
download | gdb-6cea5d88f6196bb8ba383f12e3030c7cd8d6877b.tar.gz |
gdb/
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.
-rw-r--r-- | gdb/ChangeLog | 6 | ||||
-rw-r--r-- | gdb/linespec.c | 2 |
2 files changed, 7 insertions, 1 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 3cf8f2ae777..841e7ea450d 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,9 @@ +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. + 2012-01-27 Doug Evans <dje@google.com> * configure.ac (with_python): Fix absolute path handling for win32. diff --git a/gdb/linespec.c b/gdb/linespec.c index dc9dfc60b57..50ebf6f8a16 100644 --- 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; } |