diff options
author | Vladimir Prus <vladimir@codesourcery.com> | 2007-01-04 18:58:03 +0000 |
---|---|---|
committer | Vladimir Prus <vladimir@codesourcery.com> | 2007-01-04 18:58:03 +0000 |
commit | f7e97bb3d85f1ce6b829200abebf0a4a3e85c5a5 (patch) | |
tree | 6bff14ea9a149b4d81c83fe7b84d5226d17cce3e /gdb/testsuite/gdb.mi/mi-var-cmd.exp | |
parent | 2ca3ace5aa841b86ed826a95f417172ba9af6774 (diff) | |
download | fsf-binutils-gdb-f7e97bb3d85f1ce6b829200abebf0a4a3e85c5a5.zip fsf-binutils-gdb-f7e97bb3d85f1ce6b829200abebf0a4a3e85c5a5.tar.gz fsf-binutils-gdb-f7e97bb3d85f1ce6b829200abebf0a4a3e85c5a5.tar.bz2 |
Simplify usage of mi_continue_to.
* lib/mi-support.exp (mi_runto_helper): Renamed
from mi_runto, added new parameter 'run_or_continue'.
(mi_runto): Use mi_runto_helper.
(mi_continue_to): Accept just function name as parameter.
Use mi_runto_helper.
* gdb.mi/mi-var-cmd.exp: Adjust to changes.
* gdb.mi/mi2-var-cmd.exp: Likewise.
Diffstat (limited to 'gdb/testsuite/gdb.mi/mi-var-cmd.exp')
-rw-r--r-- | gdb/testsuite/gdb.mi/mi-var-cmd.exp | 19 |
1 files changed, 3 insertions, 16 deletions
diff --git a/gdb/testsuite/gdb.mi/mi-var-cmd.exp b/gdb/testsuite/gdb.mi/mi-var-cmd.exp index 7efb438..d7cd4e9 100644 --- a/gdb/testsuite/gdb.mi/mi-var-cmd.exp +++ b/gdb/testsuite/gdb.mi/mi-var-cmd.exp @@ -425,12 +425,7 @@ mi_gdb_test "-var-update *" \ set line_subroutine1_body [gdb_get_line_number "global_simple.integer = i + 3;"] -mi_gdb_test "-break-insert subroutine1" \ - "\\^done,bkpt=\{number=\"2\",type=\"breakpoint\",disp=\"keep\",enabled=\"y\",addr=\"$hex\",func=\"subroutine1\",file=\".*var-cmd.c\",line=\"$line_subroutine1_body\",times=\"0\"\}" \ - "break-insert subroutine1" -mi_continue_to "2" "subroutine1" \ - "\{name=\"i\",value=\"4321\"\},\{name=\"l\",value=\"$hex\"\}" \ - "var-cmd.c" $line_subroutine1_body "continue to subroutine1" +mi_continue_to subroutine1 # Test: c_variable-2.10 # Desc: create variable for locals i,l in subroutine1 @@ -572,21 +567,13 @@ mi_gdb_test "-var-delete l" \ # Test whether we can follow the name of a variable through multiple # stack frames. -mi_gdb_test "-break-insert do_special_tests" \ - {\^done,bkpt=.*} \ - "set breakpoint at do_special_tests" - -mi_continue_to {.*} do_special_tests {.*} {.*var-cmd.c} {.*} {stop in do_special_tests} +mi_continue_to do_special_tests mi_gdb_test "-var-create selected_a @ a" \ {\^done,name="selected_a",numchild="0",type="int"} \ "create selected_a" -mi_gdb_test "-break-insert incr_a" \ - {\^done,bkpt=.*} \ - "set breakpoint at incr_a" - -mi_continue_to {.*} incr_a {.*} {.*var-cmd.c} {.*} {stop in incr_a} +mi_continue_to incr_a mi_gdb_test "-var-update selected_a" \ "\\^done,changelist=\\\[\{name=\"selected_a\",in_scope=\"true\",new_type=\"char\",new_num_children=\"0\"\}\\\]" \ |