Remove 'whatever' in lib/mi-support.exp
authorYao Qi <yao@codesourcery.com>
Wed, 13 Nov 2013 12:57:40 +0000 (20:57 +0800)
committerYao Qi <yao@codesourcery.com>
Tue, 19 Nov 2013 07:26:31 +0000 (15:26 +0800)
Variable 'whatever' is not used at all.  This patch is to remove it.

gdb/testsuite:

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

* lib/mi-support.exp (mi_child_regexp): Remove 'whatever'.
(mi_list_varobj_children_range): Likewise.

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

index e29624119493edd0799b9524252eb6ad93ff2740..3afa68e0a66428b3b2f32bae250c221eda0cb8a0 100644 (file)
@@ -1,3 +1,8 @@
+2013-11-19  Yao Qi  <yao@codesourcery.com>
+
+       * lib/mi-support.exp (mi_child_regexp): Remove 'whatever'.
+       (mi_list_varobj_children_range): Likewise.
+
 2013-11-19  Yao Qi  <yao@codesourcery.com>
 
        * varobj.c (varobj_get_type): Fix typo.
index 881e16e95f40db38ef327d237b76837fc0deaa7c..8eaa367601be11d26b5209fa71312a71d4d22d59 100644 (file)
@@ -1397,7 +1397,6 @@ proc mi_check_varobj_value { name value testname } {
 # mi_list_varobj_children and mi_varobj_update_dynamic.
 proc mi_child_regexp {children add_child} {
     set children_exp {}
-    set whatever "\"\[^\"\]+\""
 
     if {$add_child} {
        set pre "child="
@@ -1463,8 +1462,6 @@ proc mi_list_varobj_children_range {varname from to numchildren children testnam
         set varname [lindex $varname 0]
     }
 
-    set whatever "\"\[^\"\]+\""
-
     set children_exp_j [mi_child_regexp $children 1]
     if {$numchildren} {
         set expected "\\^done,numchild=\".*\",children=\\\[$children_exp_j.*\\\]"