gdb/
authorJan Kratochvil <jan.kratochvil@redhat.com>
Fri, 27 Jan 2012 20:31:13 +0000 (20:31 +0000)
committerJan Kratochvil <jan.kratochvil@redhat.com>
Fri, 27 Jan 2012 20:31:13 +0000 (20:31 +0000)
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.

gdb/ChangeLog
gdb/linespec.c

index 3cf8f2ae777744101fe004bf54fe9d829e2895be..841e7ea450d93c0df4c6cacccdc3307f56f40ff6 100644 (file)
@@ -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.
index dc9dfc60b57bdb29eaf8bb6a0decc7448a749440..50ebf6f8a166b70b5c9b2849afb8ded79dd226c9 100644 (file)
@@ -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;
 }