From b3b8b9346adb82fd2c210dc01590fd19bb2705e1 Mon Sep 17 00:00:00 2001 From: Jan Kratochvil Date: Fri, 27 Jan 2012 20:31:13 +0000 Subject: [PATCH] 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. --- gdb/ChangeLog | 6 ++++++ gdb/linespec.c | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) 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 + + 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 * 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; } -- 2.30.2