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 3cf8f2a..841e7ea 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 dc9dfc6..50ebf6f 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;
 }