diff options
author | Yao Qi <yao@codesourcery.com> | 2013-11-13 20:57:40 +0800 |
---|---|---|
committer | Yao Qi <yao@codesourcery.com> | 2013-11-19 15:26:31 +0800 |
commit | 077e2c8848810b23531b7fdae1739a5eab83c04f (patch) | |
tree | c49c9b8a4f062957f31fa629c6ee2feb62d4a51e | |
parent | 8ab91b9600c1a21a45080f6cef6cd91abb85c9c4 (diff) | |
download | binutils-gdb-077e2c8848810b23531b7fdae1739a5eab83c04f.tar.gz |
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.
-rw-r--r-- | gdb/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/testsuite/lib/mi-support.exp | 3 |
2 files changed, 5 insertions, 3 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index e2962411949..3afa68e0a66 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,10 @@ 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. 2013-11-19 Joel Brobecker <brobecker@adacore.com> diff --git a/gdb/testsuite/lib/mi-support.exp b/gdb/testsuite/lib/mi-support.exp index 881e16e95f4..8eaa367601b 100644 --- a/gdb/testsuite/lib/mi-support.exp +++ b/gdb/testsuite/lib/mi-support.exp @@ -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.*\\\]" |