Remove 'whatever' in lib/mi-support.exp

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.
This commit is contained in:
Yao Qi 2013-11-13 20:57:40 +08:00
parent 8ab91b9600
commit 077e2c8848
2 changed files with 5 additions and 3 deletions

View 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.

View 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.*\\\]"