gdb/source.c: Fix matching path substitute rule listing
[deliverable/binutils-gdb.git] / gdb / source.c
index c985a1b1fea6f87a76a71bb055fc73b194dc626f..14b1f71c855344781153c7d3fda64d294df670c5 100644 (file)
@@ -1890,7 +1890,7 @@ show_substitute_path_command (char *args, int from_tty)
 
   while (rule != NULL)
     {
-      if (from == NULL || FILENAME_CMP (rule->from, from) == 0)
+      if (from == NULL || substitute_path_rule_matches (rule, from) != 0)
         printf_filtered ("  `%s' -> `%s'.\n", rule->from, rule->to);
       rule = rule->next;
     }
This page took 0.028352 seconds and 4 git commands to generate.