This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
+ /* If the list of rules are empty, then insert the new rule + at the head of the list. */ + + if (substitute_path_rules == NULL) + { + substitute_path_rules = rule; + return; + } + + /* Otherwise, skip to the last rule in our list and then append + the new rule. */ + + last = substitute_path_rules; + while (last->next != NULL) + last = last->next; + + last->next = rule;
+ /* If no rule matching the argument was found, then print an error + message to the user. */ + + if (!rule_found) + { + if (from != NULL) + error (_("No substitution rule defined for `%s'"), from); + else + error (_("No substitution rule defined"));
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |