Escape a loose '[' character inside a regexp.
Commit Message
Seems like an obvious fix to me, but I wanted to check just in case.
Ok to commit?
---
gdb/testsuite/ChangeLog | 4 ++++
gdb/testsuite/lib/gdb.exp | 2 +-
2 files changed, 5 insertions(+), 1 deletion(-)
@@ -1,3 +1,7 @@
+2015-06-13 Martin Galvan <martin.galvan@tallertechnologies.com>
+
+ * lib/gdb.exp (test_class_help): Escape a loose '['.
+
2015-06-12 Antoine Tremblay <antoine.tremblay@ericsson.com>
PR breakpoints/16465
@@ -4674,7 +4674,7 @@ proc test_class_help { command_class expected_initial_lines args } {
set l_stock_body {
"List of commands\:.*\[\r\n\]+"
"Type \"help\" followed by command name for full documentation\.\[\r\n\]+"
- "Type \"apropos word\" to search for commands related to \"word\"\.[\r\n\]+"
+ "Type \"apropos word\" to search for commands related to \"word\"\.\[\r\n\]+"
"Command name abbreviations are allowed if unambiguous\."
}
set l_entire_body [concat $expected_initial_lines $l_stock_body]