Remove unnecessary '\'.
authorYao Qi <yao@codesourcery.com>
Wed, 13 Nov 2013 13:01:47 +0000 (21:01 +0800)
committerYao Qi <yao@codesourcery.com>
Tue, 19 Nov 2013 13:36:15 +0000 (21:36 +0800)
Hi,
In proc mi_child_regexp, \(,thread-id=\"\[0-9\]+\") is appended to
children_exp, while the first '\' is not necessary.  This patch
is to remove it.  With this patch applied, Emacs can find the right
left paren.

gdb/testsuite:

2013-11-19  Yao Qi  <yao@codesourcery.com>

* lib/mi-support.exp (mi_child_regexp): Remove unnecessary '\'.

gdb/testsuite/ChangeLog
gdb/testsuite/lib/mi-support.exp

index 3f08375848ec81ac2cc205e6dda4ee0603cab459..37bd536e5f1f02484e8eafdf283c72db97300de7 100644 (file)
@@ -1,3 +1,7 @@
+2013-11-19  Yao Qi  <yao@codesourcery.com>
+
+       * lib/mi-support.exp (mi_child_regexp): Remove unnecessary '\'.
+
 2013-11-19  Yao Qi  <yao@codesourcery.com>
 
        * lib/mi-support.exp: Fix format.
index 4438da8fbcaa253960c1f851a798b7850a691ab1..7f34c9b06a9164353908eee9670ae6d1dd1ee4cb 100644 (file)
@@ -1414,12 +1414,12 @@ proc mi_child_regexp {children add_child} {
            set value [lindex $item 4]
 
            lappend children_exp\
-               "$pre{name=\"$name\",exp=\"$exp\",numchild=\"$numchild\",value=\"$value\",type=\"$type\"\(,thread-id=\"\[0-9\]+\")?}"
+               "$pre{name=\"$name\",exp=\"$exp\",numchild=\"$numchild\",value=\"$value\",type=\"$type\"(,thread-id=\"\[0-9\]+\")?}"
        } elseif {[llength $item] == 4} {
            set type [lindex $item 3]
 
            lappend children_exp\
-               "$pre{name=\"$name\",exp=\"$exp\",numchild=\"$numchild\",type=\"$type\"\(,thread-id=\"\[0-9\]+\")?}"
+               "$pre{name=\"$name\",exp=\"$exp\",numchild=\"$numchild\",type=\"$type\"(,thread-id=\"\[0-9\]+\")?}"
        } else {
            lappend children_exp\
                "$pre{name=\"$name\",exp=\"$exp\",numchild=\"$numchild\"(,thread-id=\"\[0-9\]+\")?}"