This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[PATCH 1/3] Remove 'whatever' in lib/mi-support.exp
- From: Yao Qi <yao at codesourcery dot com>
- To: <gdb-patches at sourceware dot org>
- Date: Tue, 19 Nov 2013 15:04:42 +0800
- Subject: [PATCH 1/3] Remove 'whatever' in lib/mi-support.exp
- Authentication-results: sourceware.org; auth=none
- References: <1384844684-26241-1-git-send-email-yao at codesourcery dot com>
Variable 'whatever' is not used at all. This patch is to remove it.
Committed as obvious.
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/testsuite/lib/mi-support.exp | 3 ---
1 files changed, 0 insertions(+), 3 deletions(-)
diff --git a/gdb/testsuite/lib/mi-support.exp b/gdb/testsuite/lib/mi-support.exp
index 881e16e..8eaa367 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.*\\\]"
--
1.7.7.6